summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--posix-aio-compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix-aio-compat.c b/posix-aio-compat.c
index 195691744..6b547f41f 100644
--- a/posix-aio-compat.c
+++ b/posix-aio-compat.c
@@ -104,7 +104,7 @@ static void *aio_thread(void *unused)
ret = cond_timedwait(&cond, &lock, &ts);
}
- if (ret == ETIMEDOUT)
+ if (TAILQ_EMPTY(&request_list))
break;
aiocb = TAILQ_FIRST(&request_list);