event/Loop: check the `quit` flag after RunDeferred()
Allow DeferredEvents to call EventLoop::Break().
This commit is contained in:
parent
40483d8478
commit
937423dbcf
|
@ -298,6 +298,8 @@ EventLoop::Run() noexcept
|
||||||
break;
|
break;
|
||||||
|
|
||||||
RunDeferred();
|
RunDeferred();
|
||||||
|
if (quit)
|
||||||
|
break;
|
||||||
|
|
||||||
if (RunOneIdle())
|
if (RunOneIdle())
|
||||||
/* check for other new events after each
|
/* check for other new events after each
|
||||||
|
|
Loading…
Reference in New Issue