From 3c29aa62713126ebe8cc6f020fe8d896b7164ae3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 14 Dec 2014 14:47:32 +0100 Subject: event/Loop: read the "again" flag while holding mutex --- src/event/Loop.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/event') diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index 4ded68ff4..1bac7c551 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -179,9 +179,10 @@ EventLoop::Run() mutex.lock(); HandleDeferred(); busy = false; + const bool _again = again; mutex.unlock(); - if (again) + if (_again) /* re-evaluate timers because one of the IdleMonitors may have added a new timeout */ -- cgit v1.2.3