event/Loop: check the `quit` flag after RunDeferred()

Allow DeferredEvents to call EventLoop::Break().
This commit is contained in:
Max Kellermann 2021-08-02 20:21:50 +02:00 committed by Max Kellermann
parent 40483d8478
commit 937423dbcf
1 changed files with 2 additions and 0 deletions

View File

@ -298,6 +298,8 @@ EventLoop::Run() noexcept
break;
RunDeferred();
if (quit)
break;
if (RunOneIdle())
/* check for other new events after each