Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dhtnet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
dhtnet
Commits
95219efb
Commit
95219efb
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
upnp: use proper context
Change-Id: I64485068d29ad03a8432449b454e970c698d5e7f
parent
c36965cf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/upnp/upnp_context.cpp
+2
-2
2 additions, 2 deletions
src/upnp/upnp_context.cpp
with
2 additions
and
2 deletions
src/upnp/upnp_context.cpp
+
2
−
2
View file @
95219efb
...
...
@@ -45,8 +45,8 @@ constexpr static uint16_t UPNP_UDP_PORT_MAX {UPNP_UDP_PORT_MIN + 5000};
UPnPContext
::
UPnPContext
(
const
std
::
shared_ptr
<
asio
::
io_context
>&
ioContext
,
const
std
::
shared_ptr
<
dht
::
log
::
Logger
>&
logger
)
:
ctx
(
createIoContext
(
ioContext
,
logger
))
,
mappingListUpdateTimer_
(
*
ioContext
)
,
connectivityChangedTimer_
(
*
ioContext
)
,
mappingListUpdateTimer_
(
*
ctx
)
,
connectivityChangedTimer_
(
*
ctx
)
,
logger_
(
logger
)
{
if
(
logger_
)
logger_
->
debug
(
"Creating UPnPContext instance [{}]"
,
fmt
::
ptr
(
this
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment