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:
parent
718608ce94
commit
310dafbc75
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user