mirror of
				https://github.com/majmongoose/PageBot.git
				synced 2025-10-26 02:20:28 -04:00 
			
		
		
		
	Update pagebot.py
This commit is contained in:
		
							parent
							
								
									d990773319
								
							
						
					
					
						commit
						43f8b3869e
					
				| @ -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 'ttd' in proc.name().lower() or 'ttd' in ' '.join(proc.cmdline()).lower(): | ||||
|             if 'twotone' in proc.name().lower() or 'twotone' 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