mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
Jakub Sokołowski
bbc81717ce
* Use `psutils.pid_exists()` instead of iterating processes for no reason. * Drop use of recursion which is completely unnecessarily complex. Use loop. * Remove checking of `returncode` right away after process starts, it's too soon. * Lower `PROCESS_TIMEOUT_SEC` to 5 seconds to avoid needless delays. Signed-off-by: Jakub Sokołowski <jakub@status.im>
8 lines
189 B
Python
8 lines
189 B
Python
# Timoeuts before raising errors
|
|
|
|
UI_LOAD_TIMEOUT_SEC = 5
|
|
UI_LOAD_TIMEOUT_MSEC = UI_LOAD_TIMEOUT_SEC * 1000
|
|
PROCESS_TIMEOUT_SEC = 5
|
|
APP_LOAD_TIMEOUT_MSEC = 60000
|
|
MESSAGING_TIMEOUT_SEC = 60
|