1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Refactor: Faster device retrying

This commit is contained in:
LmeSzinc
2022-12-29 19:22:55 +08:00
parent 1d96582c1f
commit 2285b716cf
9 changed files with 37 additions and 30 deletions

View File

@@ -24,7 +24,7 @@ def retry(func):
for _ in range(RETRY_TRIES):
try:
if callable(init):
self.sleep(RETRY_DELAY)
retry_sleep(_)
init()
return func(self, *args, **kwargs)
# Can't handle