timeout error in china

This commit is contained in:
MoreTorque
2025-08-13 23:45:09 +00:00
parent 22350cd81c
commit 4618f89173
+3
View File
@@ -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})")