Commit 310dafbc authored by Min RK's avatar Min RK

zmq_poll returns 0 on timeout

not -1, ETIMEDOUT like zmq_poller
parent 718608ce
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment