mirror of
https://github.com/majmongoose/PageBot.git
synced 2025-06-14 12:32:27 -04:00
Revert "Update pagebot.py"
This reverts commit 43f8b3869e4da1bc9e79b15af542ea6209f56050.
This commit is contained in:
parent
43f8b3869e
commit
96a4e1f5c2
@ -99,7 +99,7 @@ def kill_existing_ttd_instances():
|
||||
"""Terminate all running instances of TTD."""
|
||||
for proc in psutil.process_iter(['name', 'exe', 'cmdline']):
|
||||
try:
|
||||
if 'twotone' in proc.name().lower() or 'twotone' in ' '.join(proc.cmdline()).lower():
|
||||
if 'ttd' in proc.name().lower() or 'ttd' in ' '.join(proc.cmdline()).lower():
|
||||
print("Terminating an existing instance of TTD...")
|
||||
proc.terminate() # Send SIGTERM
|
||||
proc.wait() # Wait for the process to terminate
|
||||
|
Loading…
x
Reference in New Issue
Block a user