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 # Kill all threads
if PROCESS: if PROCESS:
print("Killing all subprocesses") print("Killing all subprocesses")
process.terminate() PROCESS.terminate()
print("Killed all subprocesses") print("Killed all subprocesses")
# Always cleanup PID File if it exists # Always cleanup PID File if it exists
if PID_FILE.exists(): if PID_FILE.exists():

Loading…
Cancel
Save