Reset revents before polling

This commit is contained in:
Con Kolivas 2014-05-02 00:18:41 +10:00
parent 68ea10ac53
commit 5721ec1dcf

View File

@ -238,6 +238,7 @@ retry:
HASH_ITER(fdhh, fdclients, client, tmp) {
fds[nfds].fd = client->fd;
fds[nfds].events = POLLIN;
fds[nfds].revents = 0;
nfds++;
}
ck_runlock(&ci->lock);