From 7d3a18f8d130617c653ffa724912e071a6004e6b Mon Sep 17 00:00:00 2001 From: moesnow <11678347+moesnow@users.noreply.github.com> Date: Sun, 15 Oct 2023 17:15:25 +0800 Subject: [PATCH] fix: kill other user processes again --- tasks/game/stop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/game/stop.py b/tasks/game/stop.py index 832b5a24..47644937 100644 --- a/tasks/game/stop.py +++ b/tasks/game/stop.py @@ -29,7 +29,7 @@ def terminate_process(name, timeout=10): username = process_info['username'] else: username = "" - if name == process_info['name'] and username == current_user: + if name in process_info['name'] and username == current_user: try: process = psutil.Process(process_info['pid']) process.terminate()