summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/aio.c b/aio.c
index 200320c979..11fbb6c0c5 100644
--- a/aio.c
+++ b/aio.c
@@ -44,7 +44,8 @@ static AioHandler *find_aio_handler(int fd)
LIST_FOREACH(node, &aio_handlers, node) {
if (node->fd == fd)
- return node;
+ if (!node->deleted)
+ return node;
}
return NULL;