diff --git a/src/event/Call.cxx b/src/event/Call.cxx index f3eb82235..ded252645 100644 --- a/src/event/Call.cxx +++ b/src/event/Call.cxx @@ -79,7 +79,7 @@ private: void BlockingCall(EventLoop &loop, std::function &&f) { - if (loop.IsInside()) { + if (loop.IsInsideOrNull()) { /* we're already inside the loop - we can simply call the function */ f();