mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-22 18:49:29 +08:00
Refactor: Faster device retrying
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user