From 737d955da41eaea9ad75b9928b305de129015a6e Mon Sep 17 00:00:00 2001 From: Andrey Pohilko Date: Fri, 2 Feb 2018 16:54:53 +0300 Subject: [PATCH] Cosmetics --- pylgbst/peripherals.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylgbst/peripherals.py b/pylgbst/peripherals.py index 353d442..136c615 100644 --- a/pylgbst/peripherals.py +++ b/pylgbst/peripherals.py @@ -27,6 +27,7 @@ class Peripheral(object): self._working = False self._subscribers = set() self._port_subscription_mode = None + # TODO: maybe max queue len of 2? self._incoming_port_data = queue.Queue(1) # limit 1 means we drop data if we can't handle it fast enough thr = Thread(target=self._queue_reader) thr.setDaemon(True)