STILL FIXING

This commit is contained in:
2026-03-06 22:03:59 -05:00
parent 12dba31c1d
commit cb57cc4a02
4 changed files with 51 additions and 15 deletions

View File

@@ -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):