From 4873449a07b3176366cb582697cc3ff2e98be5a1 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 4 Nov 2019 17:59:49 -0800 Subject: [PATCH] use recv one or none after poll --- messaging/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messaging/__init__.py b/messaging/__init__.py index fa803e5d05a0af..08a827494c41e8 100644 --- a/messaging/__init__.py +++ b/messaging/__init__.py @@ -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):