Fix WinAPI condition for outOfWaiters event loop exit reason.

Calling processEvents could previously block indefinitely even if there were no waiters left.
This commit is contained in:
Sönke Ludwig 2017-11-20 15:57:31 +01:00
parent bcc6614b00
commit 314bd2bb48

View file

@ -48,6 +48,8 @@ final class WinAPIEventDriverCore : EventDriverCore {
return ExitReason.exited;
}
if (!waiterCount) return ExitReason.outOfWaiters;
bool got_event;
if (timeout <= 0.seconds) {