Skip to content

Commit b0b9aa5

Browse files
committed
keeps the main process alive until the agent thread finishes
1 parent 0d9adc2 commit b0b9aa5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,8 @@ def __init__(self):
652652
self.returncode = None
653653
def poll(self):
654654
return None if thread.is_alive() else 0
655+
def wait(self):
656+
thread.join()
655657
def terminate(self):
656658
pass # Thread will exit when main process exits (daemon=True)
657659
def kill(self):

0 commit comments

Comments
 (0)