diff options
Diffstat (limited to 'aio-win32.c')
-rw-r--r-- | aio-win32.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/aio-win32.c b/aio-win32.c index ea655b0935..7afc9992d6 100644 --- a/aio-win32.c +++ b/aio-win32.c @@ -337,10 +337,11 @@ bool aio_poll(AioContext *ctx, bool blocking) aio_context_acquire(ctx); } - if (first && aio_bh_poll(ctx)) { - progress = true; + if (first) { + event_notifier_test_and_clear(&ctx->notifier); + progress |= aio_bh_poll(ctx); + first = false; } - first = false; /* if we have any signaled events, dispatch event */ event = NULL; |