From 4618f891738efd0dd698484789c65dd27c5a3821 Mon Sep 17 00:00:00 2001 From: MoreTorque <104254025+MoreTore@users.noreply.github.com> Date: Wed, 13 Aug 2025 23:45:09 +0000 Subject: [PATCH] timeout error in china --- system/athena/registration.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/athena/registration.py b/system/athena/registration.py index e57c0ea67d..95d78e36ba 100755 --- a/system/athena/registration.py +++ b/system/athena/registration.py @@ -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})")