mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Fix: [ALAS] Trying to handle AdbError: unknown host service
(cherry picked from commit 59ad8bd6fcd4b63ab9a557b1bd11aa92fb071e13)
This commit is contained in:
@@ -15,6 +15,10 @@ from module.exception import RequestHumanTakeover
|
||||
from module.logger import logger
|
||||
|
||||
|
||||
def handle_unknown_host_service(e):
|
||||
pass
|
||||
|
||||
|
||||
def retry(func):
|
||||
@wraps(func)
|
||||
def retry_wrapper(self, *args, **kwargs):
|
||||
@@ -61,6 +65,11 @@ def retry(func):
|
||||
def init():
|
||||
self.adb_reconnect()
|
||||
del_cached_property(self, '_maatouch_builder')
|
||||
elif handle_unknown_host_service(e):
|
||||
def init():
|
||||
self.adb_start_server()
|
||||
self.adb_reconnect()
|
||||
del_cached_property(self, '_maatouch_builder')
|
||||
else:
|
||||
break
|
||||
# MaaTouchNotInstalledError: Received "Aborted" from MaaTouch
|
||||
|
||||
Reference in New Issue
Block a user