Fix crash when zombie processes exist in the psutil result

This commit is contained in:
2025-09-25 20:53:11 +02:00
parent 9b288a39dc
commit 21cf1be326

View File

@@ -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