tevent: Only set poll_ev->delete=false if it was true
[obnox/samba/samba-obnox.git] / lib / tevent / tevent_poll.c
index 92fcc441ac9aa1e8e6a35c470742a6104f148b4f..c6e2a00ffec6393fd6fccc1a3836f63e4ef4e045 100644 (file)
@@ -419,8 +419,8 @@ static bool poll_event_setup_fresh(struct tevent_context *ev,
                                poll_ev->fdes[i]->additional_flags = i;
                        }
                }
+               poll_ev->deleted = false;
        }
-       poll_ev->deleted = false;
 
        if (poll_ev->fresh == NULL) {
                return true;