Commit 4e88f95f authored by Max Kellermann's avatar Max Kellermann

event/Loop: move the "again" check out of the mutex scope

parent 790e540c
...@@ -330,14 +330,13 @@ EventLoop::Run() noexcept ...@@ -330,14 +330,13 @@ EventLoop::Run() noexcept
const std::lock_guard<Mutex> lock(mutex); const std::lock_guard<Mutex> lock(mutex);
HandleInject(); HandleInject();
busy = false; busy = false;
}
#endif
if (again) if (again)
/* re-evaluate timers because one of /* re-evaluate timers because one of the
the IdleEvents may have added a DeferEvents may have added a new timeout */
new timeout */
continue; continue;
}
#endif
/* wait for new event */ /* wait for new event */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment