0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-29 08:39:42 +08:00

zmq_poll returns 0 on timeout

not -1, ETIMEDOUT like zmq_poller
This commit is contained in:
Min RK 2016-09-29 15:44:31 +02:00
parent 718608ce94
commit 310dafbc75

View File

@ -780,6 +780,9 @@ inline int zmq_poller_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
if (rc < 0) {
zmq_poller_destroy (&poller);
delete [] events;
if (zmq_errno() == ETIMEDOUT) {
return 0;
}
return rc;
}