From d1b7bae9433f165bc81db6da8478ec7062e03ace Mon Sep 17 00:00:00 2001 From: Cooper Ry Lees Date: Sat, 21 Jan 2023 01:51:39 +0000 Subject: [PATCH] Fix process terminate in cleanup function --- gpt3discord.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt3discord.py b/gpt3discord.py index 7907830..b8f7b1a 100644 --- a/gpt3discord.py +++ b/gpt3discord.py @@ -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():