Fix crash when zombie processes exist in the psutil result
This commit is contained in:
@@ -82,7 +82,7 @@ def d2_running() -> bool:
|
||||
try:
|
||||
if proc.cmdline()[0].endswith("D2R.exe"):
|
||||
return True
|
||||
except (IndexError, psutil.AccessDenied):
|
||||
except (IndexError, psutil.AccessDenied, psutil.ZombieProcess):
|
||||
pass
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user