make starting tray check faster

This commit is contained in:
Jakub Trllo 2024-07-24 15:47:08 +02:00
parent d00676eeb5
commit 9c01ddaf63

View file

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