mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
fix blocking sleep in updated (#1860)
old-commit-hash: 62a94eb0cda8bc2c0f2cc1a116b3d5a0cc6e4628
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user