mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 04:52:05 +00:00
fix: add retry for minitouch and MaaTouch builders
This commit is contained in:
@@ -107,6 +107,7 @@ class MaaTouch(Connection):
|
||||
_maatouch_init_thread = None
|
||||
|
||||
@cached_property
|
||||
@retry
|
||||
def _maatouch_builder(self):
|
||||
self.maatouch_init()
|
||||
return MaatouchBuilder(self)
|
||||
@@ -298,3 +299,8 @@ class MaaTouch(Connection):
|
||||
builder.contact = 1
|
||||
builder.up().commit()
|
||||
builder.send()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
self = MaaTouch('src')
|
||||
self.maatouch_uninstall()
|
||||
|
||||
@@ -373,6 +373,7 @@ class Minitouch(Connection):
|
||||
_minitouch_init_thread = None
|
||||
|
||||
@cached_property
|
||||
@retry
|
||||
def _minitouch_builder(self):
|
||||
self.minitouch_init()
|
||||
return CommandBuilder(self)
|
||||
|
||||
Reference in New Issue
Block a user