mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 17:52:09 +00:00
fix: extend nemu_ipc timeout on retries dynamically for slow PCs
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user