Commit 0abdc28c authored by Min RK's avatar Min RK

only compare FD when neither item is a zmq socket

parent 02a60799
...@@ -834,7 +834,7 @@ inline int zmq_poller_poll (zmq_pollitem_t *items_, int nitems_, long timeout_) ...@@ -834,7 +834,7 @@ inline int zmq_poller_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
for (int j = j_start; j < found_events; ++j) { for (int j = j_start; j < found_events; ++j) {
if ( if (
(items_[i].socket && items_[i].socket == events[j].socket) || (items_[i].socket && items_[i].socket == events[j].socket) ||
(!items_[i].socket && items_[i].fd == events[j].fd) (!(items_[i].socket || events[j].socket) && items_[i].fd == events[j].fd)
) { ) {
items_[i].revents = events[j].events & items_[i].events; items_[i].revents = events[j].events & items_[i].events;
if (!repeat_items) { if (!repeat_items) {
......
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