Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fair_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ where
inner.streams.insert(event.key, io_stream);
return Poll::Ready(item);
}
Poll::Ready(None) => continue,
Poll::Ready(None) => return Poll::Ready(None),
Poll::Pending => {
let mut inner = fair_queue.inner.lock();
inner.streams.insert(event.key, io_stream);
Expand Down
1 change: 1 addition & 0 deletions src/sub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ impl SocketRecv for SubSocket {
}
None => {
// The fair queue is empty, which shouldn't happen in normal operation
// this can happen if the peer disconnects while we are polling
return Err(ZmqError::NoMessage);
}
}
Expand Down