mirror of
https://github.com/simon987/hexlib.git
synced 2025-12-13 14:49:05 +00:00
queue_iter fix
This commit is contained in:
@@ -12,7 +12,7 @@ class StatefulStreamWorker:
|
||||
pass
|
||||
|
||||
def run(self, q: Queue):
|
||||
for chunk in queue_iter(q, timeout=3):
|
||||
for chunk in queue_iter(q, joinable=False, timeout=3):
|
||||
self.process_chunk(chunk)
|
||||
|
||||
def process_chunk(self, chunk):
|
||||
|
||||
Reference in New Issue
Block a user