summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tevent/tevent_aio.c')
-rw-r--r--lib/tevent/tevent_aio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/tevent/tevent_aio.c b/lib/tevent/tevent_aio.c
index decdcc7bbc..f4ed6d8a5a 100644
--- a/lib/tevent/tevent_aio.c
+++ b/lib/tevent/tevent_aio.c
@@ -402,9 +402,6 @@ static int aio_event_fd_destructor(struct tevent_fd *fde)
if (fde->close_fn) {
fde->close_fn(ev, fde, fde->fd, fde->private_data);
fde->fd = -1;
- } else if (fde->flags & TEVENT_FD_AUTOCLOSE) {
- close(fde->fd);
- fde->fd = -1;
}
return 0;