mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-18 13:33:57 +08:00
timeout error in china
This commit is contained in:
@@ -86,6 +86,9 @@ def register(show_spinner=False) -> str | None:
|
||||
cloudlog.exception("failed to authenticate")
|
||||
backoff = min(backoff + 1, 15)
|
||||
time.sleep(backoff)
|
||||
if backoff >= 5:
|
||||
dongle_id = UNREGISTERED_DONGLE_ID
|
||||
break
|
||||
|
||||
if time.monotonic() - start_time > 60 and show_spinner:
|
||||
spinner.update(f"registering device - serial: {serial}, IMEI: ({imei1}, {imei2})")
|
||||
|
||||
Reference in New Issue
Block a user