Fix process terminate in cleanup function

Cooper Ry Lees 2 years ago
parent 266fd7b953
commit d1b7bae943

@ -197,7 +197,7 @@ def cleanup_pid_file(signum, frame):
# Kill all threads
if PROCESS:
print("Killing all subprocesses")
process.terminate()
PROCESS.terminate()
print("Killed all subprocesses")
# Always cleanup PID File if it exists
if PID_FILE.exists():

Loading…
Cancel
Save