Skip to content
Snippets Groups Projects
Commit 95219efb authored by Adrien Béraud's avatar Adrien Béraud
Browse files

upnp: use proper context

Change-Id: I64485068d29ad03a8432449b454e970c698d5e7f
parent c36965cf
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment