feat: continue after sleep
This commit is contained in:
@@ -25,6 +25,7 @@ class EventListener(Thread):
|
|||||||
item = self.pubsub.get_message()
|
item = self.pubsub.get_message()
|
||||||
if not item:
|
if not item:
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
|
continue
|
||||||
channel = item['channel'].decode()
|
channel = item['channel'].decode()
|
||||||
data = item['data']
|
data = item['data']
|
||||||
if not isinstance(data, bytes):
|
if not isinstance(data, bytes):
|
||||||
|
|||||||
Reference in New Issue
Block a user