fix: extend nemu_ipc timeout on retries dynamically for slow PCs

This commit is contained in:
2026-07-06 22:40:43 +08:00
parent 1e152c4641
commit 6582754025
13 changed files with 33 additions and 18 deletions
+4 -4
View File
@@ -186,16 +186,16 @@ class ImageTruncated(Exception):
def retry_sleep(trial):
# First trial
if trial == 0:
pass
return 0
# Failed once, fast retry
elif trial == 1:
pass
return 0
# Failed twice
elif trial == 2:
time.sleep(1)
return 1
# Failed more
else:
time.sleep(RETRY_DELAY)
return RETRY_DELAY
def handle_adb_error(e):