diff options
-rw-r--r-- | src/servers/master.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/servers/master.c b/src/servers/master.c index 094d853..acd0f6b 100644 --- a/src/servers/master.c +++ b/src/servers/master.c @@ -339,11 +339,13 @@ int main_loop(void) for (j = 0, i = 0; j < connections_used; j++) if (connections[j] >= 0) { + fds[i].revents = 0; if (ring_have_more(outbound + j)) fds[(size_t)i++ + j].events |= POLLOUT; else fds[(size_t)i++ + j].events &= ~POLLOUT; } + fds[i].revents = 0; if (poll(fds, fdn, -1) < 0) { |