proton: Correctly Popen.communicate() with timeout.

This commit is contained in:
Arkadiusz Hiler 2024-07-29 12:10:50 +03:00
parent b6eda24974
commit 7fa4b63735

2
proton
View File

@ -1555,7 +1555,7 @@ class Session:
if remote_debug_proc:
remote_debug_proc.kill()
try:
remote_debug_proc.communicate(2)
remote_debug_proc.communicate(timeout=2)
except subprocess.TimeoutExpired:
log("terminate remote debugger")
remote_debug_proc.terminate()