fix of blocking of the text output in batch mode.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 11:49:52 +02:00
parent fa7f8cef7c
commit 88cc410eed

View File

@@ -80,8 +80,8 @@ class Batch:
while True: while True:
try: try:
m = msg_queue.get(timeout=0.2) m = msg_queue.get(timeout=0.2)
if m.get("id", None) is None: if "id" in m and m["id"] is None:
# No id -> finished # id key present and None -> finished
break break
except Empty: except Empty:
if not tst_proc.is_alive(): if not tst_proc.is_alive():