Skip to content

Commit

Permalink
use recv one or none after poll
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Nov 8, 2019
1 parent a054864 commit 4873449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __getitem__(self, s):
def update(self, timeout=1000):
msgs = []
for sock in self.poller.poll(timeout):
msgs.append(recv_one(sock))
msgs.append(recv_one_or_none(sock))
self.update_msgs(sec_since_boot(), msgs)

def update_msgs(self, cur_time, msgs):
Expand Down

0 comments on commit 4873449

Please sign in to comment.