diff options
author | Max Kellermann <max@duempel.org> | 2014-12-14 14:47:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-14 14:47:36 +0100 |
commit | 3c29aa62713126ebe8cc6f020fe8d896b7164ae3 (patch) | |
tree | 8d59828765e531637418978ea552b22b91b1d115 | |
parent | 51464b43179ca53373080c14739be6feae4af9c5 (diff) | |
download | mpd-3c29aa62713126ebe8cc6f020fe8d896b7164ae3.tar.gz mpd-3c29aa62713126ebe8cc6f020fe8d896b7164ae3.tar.xz mpd-3c29aa62713126ebe8cc6f020fe8d896b7164ae3.zip |
event/Loop: read the "again" flag while holding mutex
Diffstat (limited to '')
-rw-r--r-- | src/event/Loop.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |