Skip to content
Snippets Groups Projects
Commit 55abf077 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

upnp: fix constructor

Change-Id: I6c8082c7452c371d3c1afc03846452cf0d547e20
parent 464bdff6
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ private:
};
public:
UPnPContext(std::shared_ptr<asio::io_context> ctx, std::shared_ptr<dht::log::Logger> logger);
UPnPContext(const std::shared_ptr<asio::io_context>& ctx, const std::shared_ptr<dht::log::Logger>& logger);
~UPnPContext();
// Retrieve the UPnPContext singleton.
......
......@@ -36,7 +36,7 @@ constexpr static uint16_t UPNP_TCP_PORT_MAX {UPNP_TCP_PORT_MIN + 5000};
constexpr static uint16_t UPNP_UDP_PORT_MIN {20000};
constexpr static uint16_t UPNP_UDP_PORT_MAX {UPNP_UDP_PORT_MIN + 5000};
UPnPContext::UPnPContext(std::shared_ptr<asio::io_context> ctx, std::shared_ptr<dht::log::Logger> logger)
UPnPContext::UPnPContext(const std::shared_ptr<asio::io_context>& ioContext, const std::shared_ptr<dht::log::Logger>& logger)
: mappingListUpdateTimer_(*ioContext)
{
// JAMI_DBG("Creating UPnPContext instance [%p]", this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment