diff options
Diffstat (limited to 'aio-android.c')
-rw-r--r-- | aio-android.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/aio-android.c b/aio-android.c index 53f7a6d..2b67579 100644 --- a/aio-android.c +++ b/aio-android.c @@ -151,6 +151,11 @@ void qemu_aio_wait(void) walking_handlers = 0; + /* No AIO operations? Get us out of here */ + if (!iolooper_has_operations(looper)) { + break; + } + /* wait until next event */ ret = iolooper_wait(looper, -1); |