1
0
mirror of https://github.com/undera/pylgbst.git synced 2020-11-18 19:37:26 -08:00

Cosmetics

This commit is contained in:
Andrey Pohilko 2018-02-02 16:54:53 +03:00
parent 27b9898205
commit 737d955da4

View File

@ -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)