Skip to content

Commit

Permalink
fix: kill other user processes again
Browse files Browse the repository at this point in the history
  • Loading branch information
moesnow committed Oct 15, 2023
1 parent 431ffc4 commit 7d3a18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/game/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7d3a18f

Please sign in to comment.