mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-24 01:54:33 +00:00
fixed build with boost 1.87
This commit is contained in:
parent
bdc5eaa824
commit
833e0a936e
@ -52,7 +52,7 @@ namespace transport
|
|||||||
{
|
{
|
||||||
m_IsRunning = true;
|
m_IsRunning = true;
|
||||||
LogPrint(eLogInfo, "UPnP: Starting");
|
LogPrint(eLogInfo, "UPnP: Starting");
|
||||||
m_Service.post (std::bind (&UPnP::Discover, this));
|
boost::asio::post (m_Service, std::bind (&UPnP::Discover, this));
|
||||||
std::unique_lock<std::mutex> l(m_StartedMutex);
|
std::unique_lock<std::mutex> l(m_StartedMutex);
|
||||||
m_Thread.reset (new std::thread (std::bind (&UPnP::Run, this)));
|
m_Thread.reset (new std::thread (std::bind (&UPnP::Run, this)));
|
||||||
m_Started.wait_for (l, std::chrono::seconds (5)); // 5 seconds maximum
|
m_Started.wait_for (l, std::chrono::seconds (5)); // 5 seconds maximum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user