Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Return poll result for all SP sockets, not first socket only. #29

Merged
merged 1 commit into from
Sep 10, 2016
Merged
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
Return poll result for all SP sockets, not first socket only.
  • Loading branch information
wrobell committed Sep 9, 2016
commit 9984c63c31c190e5ce69f122f0646bbd87014c09
2 changes: 1 addition & 1 deletion nnpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def __init__(self, *args):

def poll(self, timeout=0):
rc = nanomsg.nn_poll(self.fd_set, len(self.data), timeout)
return errors.convert(rc, lambda: self.fd_set[0].revents)
return errors.convert(rc, lambda: [fd.revents for fd in self.fd_set])