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

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

parent 790e540c
......@@ -330,15 +330,14 @@ EventLoop::Run() noexcept
const std::lock_guard<Mutex> lock(mutex);
HandleInject();
busy = false;
if (again)
/* re-evaluate timers because one of
the IdleEvents may have added a
new timeout */
continue;
}
#endif
if (again)
/* re-evaluate timers because one of the
DeferEvents may have added a new timeout */
continue;
/* wait for new event */
Wait(timeout);
......
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