mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
make starting tray check faster
This commit is contained in:
parent
d00676eeb5
commit
9c01ddaf63
1 changed files with 4 additions and 0 deletions
|
|
@ -122,6 +122,10 @@ def _wait_for_starting_tray(
|
|||
if data.get("started") is True:
|
||||
return data
|
||||
|
||||
pid = data.get("pid")
|
||||
if pid and not _is_process_running(pid):
|
||||
return None
|
||||
|
||||
if time.time() - started_at > timeout:
|
||||
return None
|
||||
time.sleep(0.1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue