fix blocking sleep in updated (#1860)

pull/1870/head
Adeeb Shihadeh 5 years ago committed by GitHub
parent 897ee6bd2b
commit 62a94eb0cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save