mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-02-05 18:20:51 +03:00
proton: Correctly Popen.communicate() with timeout.
This commit is contained in:
parent
b6eda24974
commit
7fa4b63735
2
proton
2
proton
@ -1555,7 +1555,7 @@ class Session:
|
|||||||
if remote_debug_proc:
|
if remote_debug_proc:
|
||||||
remote_debug_proc.kill()
|
remote_debug_proc.kill()
|
||||||
try:
|
try:
|
||||||
remote_debug_proc.communicate(2)
|
remote_debug_proc.communicate(timeout=2)
|
||||||
except subprocess.TimeoutExpired:
|
except subprocess.TimeoutExpired:
|
||||||
log("terminate remote debugger")
|
log("terminate remote debugger")
|
||||||
remote_debug_proc.terminate()
|
remote_debug_proc.terminate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user