Windows compilation fix

pull/1969/head
Jason Rhinelander 2 years ago
parent b2cd9a9eec
commit 1f9779cdcd
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262

@ -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…
Cancel
Save