mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
only compare FD when neither item is a zmq socket
This commit is contained in:
parent
02a6079968
commit
0abdc28c84
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user