STILL FIXING
This commit is contained in:
@@ -293,8 +293,17 @@ def live_gui() -> Generator[tuple[subprocess.Popen, str], None, None]:
|
||||
client.reset_session()
|
||||
time.sleep(0.5)
|
||||
except: pass
|
||||
kill_process_tree(process.pid)
|
||||
time.sleep(1.0)
|
||||
|
||||
if process.poll() is None:
|
||||
kill_process_tree(process.pid)
|
||||
# On Windows, taskkill /F /T can leave the Popen object in a state where it still thinks
|
||||
# the handle is valid until waited on.
|
||||
try:
|
||||
process.wait(timeout=2)
|
||||
except:
|
||||
pass
|
||||
|
||||
time.sleep(0.5)
|
||||
log_file.close()
|
||||
# Cleanup temp workspace with retry for Windows file locks
|
||||
for _ in range(5):
|
||||
|
||||
Reference in New Issue
Block a user