mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-31 01:43:02 +08:00
zmq_poll returns 0 on timeout
not -1, ETIMEDOUT like zmq_poller
This commit is contained in:
parent
718608ce94
commit
310dafbc75
@ -780,6 +780,9 @@ inline int zmq_poller_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
|
|||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
zmq_poller_destroy (&poller);
|
zmq_poller_destroy (&poller);
|
||||||
delete [] events;
|
delete [] events;
|
||||||
|
if (zmq_errno() == ETIMEDOUT) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user