Commit 2b565088 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #2257 from minrk/check-event

zmq_poll: only compare FD when neither item is a zmq socket
parents 1910ef8d 0abdc28c
......@@ -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) {
if (
(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;
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