summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 2ac4cc00ed..07a270c1e7 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -127,6 +127,7 @@ bool run_events(struct tevent_context *ev,
if (FD_ISSET(fde->fd, write_fds)) flags |= EVENT_FD_WRITE;
if (flags & fde->flags) {
+ DLIST_DEMOTE(ev->fd_events, fde, struct tevent_fd);
fde->handler(ev, fde, flags, fde->private_data);
return true;
}