From 62a94eb0cda8bc2c0f2cc1a116b3d5a0cc6e4628 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 12 Jul 2020 01:46:18 -0700 Subject: [PATCH] fix blocking sleep in updated (#1860) --- selfdrive/updated.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/updated.py b/selfdrive/updated.py index 6194bda9d2..bb665180ed 100755 --- a/selfdrive/updated.py +++ b/selfdrive/updated.py @@ -317,7 +317,6 @@ def attempt_update(): def main(): update_failed_count = 0 overlay_init_done = False - wait_helper = WaitTimeHelper() params = Params() if params.get("DisableUpdates") == b"1": @@ -340,6 +339,7 @@ def main(): # Wait a short time before our first update attempt # Avoids race with IsOffroad not being set, reduces manager startup load time.sleep(30) + wait_helper = WaitTimeHelper() while True: update_failed_count += 1