diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index 86bb93250..32635d6d7 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -330,15 +330,14 @@ EventLoop::Run() noexcept const std::lock_guard 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);