Browse Source

Reset revents before polling

master
Con Kolivas 11 years ago
parent
commit
5721ec1dcf
  1. 1
      src/connector.c

1
src/connector.c

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

Loading…
Cancel
Save