mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
Windows compilation fix
This commit is contained in:
parent
b2cd9a9eec
commit
1f9779cdcd
|
@ -375,11 +375,10 @@ namespace llarp::dns
|
||||||
runner = std::thread{[this]() {
|
runner = std::thread{[this]() {
|
||||||
while (running)
|
while (running)
|
||||||
{
|
{
|
||||||
ub_wait(ctx);
|
ub_wait(m_ctx);
|
||||||
std::this_thread::sleep_for(10ms);
|
std::this_thread::sleep_for(10ms);
|
||||||
}
|
}
|
||||||
if (auto c = ctx.lock())
|
ub_process(m_ctx);
|
||||||
ub_process(c.get());
|
|
||||||
}};
|
}};
|
||||||
#else
|
#else
|
||||||
if (auto loop = m_Loop.lock())
|
if (auto loop = m_Loop.lock())
|
||||||
|
|
Loading…
Reference in a new issue