Skip to content

Commit

Permalink
Merge pull request #32 from jsvk/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
sousa-andre committed Dec 30, 2022
2 parents 91242a9 + d5f7103 commit 768d79b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lcu_driver/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Dict, Generator

from psutil import process_iter, Process
from psutil import process_iter, Process, STATUS_ZOMBIE


def parse_cmdline_args(cmdline_args) -> Dict[str, str]:
Expand All @@ -14,5 +14,8 @@ def parse_cmdline_args(cmdline_args) -> Dict[str, str]:

def _return_ux_process() -> Generator[Process, None, None]:
for process in process_iter():
if process.status() == STATUS_ZOMBIE:
continue

if process.name() in ['LeagueClientUx.exe', 'LeagueClientUx']:
yield process

0 comments on commit 768d79b

Please sign in to comment.