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