fix: catch OSError when iter running emulators

This commit is contained in:
2026-07-06 22:40:40 +08:00
parent 8c8dd37ce0
commit 1e8686c2a4
+2 -1
View File
@@ -506,9 +506,10 @@ class EmulatorManager(EmulatorManagerBase):
try:
exe = proc.cmdline()
exe = exe[0].replace(r'\\', '/').replace('\\', '/')
except (psutil.AccessDenied, psutil.NoSuchProcess, IndexError):
except (psutil.AccessDenied, psutil.NoSuchProcess, IndexError, OSError):
# psutil.AccessDenied
# NoSuchProcess: process no longer exists (pid=xxx)
# OSError: [WinError 87] 参数错误。: '(originated from ReadProcessMemory)'
continue
if Emulator.is_emulator(exe):