No need for events when using fd = -1

This commit is contained in:
Christopher Wellons 2019-02-05 23:59:16 -05:00
parent e93c71a881
commit c8148970e9

View File

@ -610,7 +610,7 @@ main(int argc, char **argv)
if (queue->length < config.max_clients) if (queue->length < config.max_clients)
pollvec_push(pollvec, server, POLLIN); pollvec_push(pollvec, server, POLLIN);
else else
pollvec_push(pollvec, -1, POLLIN); pollvec_push(pollvec, -1, 0);
/* Enqueue clients that are due for another message */ /* Enqueue clients that are due for another message */
int timeout = -1; int timeout = -1;