Commit 3c29aa62 authored by Max Kellermann's avatar Max Kellermann

event/Loop: read the "again" flag while holding mutex

parent 51464b43
...@@ -179,9 +179,10 @@ EventLoop::Run() ...@@ -179,9 +179,10 @@ EventLoop::Run()
mutex.lock(); mutex.lock();
HandleDeferred(); HandleDeferred();
busy = false; busy = false;
const bool _again = again;
mutex.unlock(); mutex.unlock();
if (again) if (_again)
/* re-evaluate timers because one of the /* re-evaluate timers because one of the
IdleMonitors may have added a new IdleMonitors may have added a new
timeout */ 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