Commit 4e5271fc authored by Max Kellermann's avatar Max Kellermann

event/Call: allow usage during shutdown

Change EventLoop::IsInside() call to EventLoop::IsInsideOrNull(). This means that BlockingCall() may be used during shutdown, after the main EventLoop::Run() has finished. This is important because mixers are currently registered in the main EventLoop.
parent 3c55487a
......@@ -79,7 +79,7 @@ private:
void
BlockingCall(EventLoop &loop, std::function<void()> &&f)
{
if (loop.IsInside()) {
if (loop.IsInsideOrNull()) {
/* we're already inside the loop - we can simply call
the function */
f();
......
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