We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a194f0b commit 771593fCopy full SHA for 771593f
1 file changed
windows/injection.py
@@ -374,7 +374,7 @@ def safe_execute_python(process, code):
374
t.wait() # Wait terminaison of the thread
375
if t.exit_code == 0:
376
return True
377
- if t.exit_code == STATUS_THREAD_IS_TERMINATING:
+ if t.exit_code == STATUS_THREAD_IS_TERMINATING or process.is_exit:
378
raise WindowsError("{0} died during execution of python command".format(process))
379
if t.exit_code != 0xffffffff:
380
raise ValueError("Unknown exit code {0}".format(hex(t.exit_code)))
0 commit comments