1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-24 04:25:56 +08:00

Fix: [ALAS] Touch builders have no retries if called directly

This commit is contained in:
LmeSzinc
2024-04-19 01:53:52 +08:00
parent 00926388c8
commit 54ff40588c
2 changed files with 2 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ class MaaTouch(Connection):
_maatouch_init_thread = None _maatouch_init_thread = None
@cached_property @cached_property
@retry
def _maatouch_builder(self): def _maatouch_builder(self):
self.maatouch_init() self.maatouch_init()
return MaatouchBuilder(self) return MaatouchBuilder(self)

View File

@@ -373,6 +373,7 @@ class Minitouch(Connection):
_minitouch_init_thread = None _minitouch_init_thread = None
@cached_property @cached_property
@retry
def _minitouch_builder(self): def _minitouch_builder(self):
self.minitouch_init() self.minitouch_init()
return CommandBuilder(self) return CommandBuilder(self)