Fix: Installation problems

- Disable update check
- Add max retry attempt to screenshot
This commit is contained in:
LmeSzinc 2020-07-07 19:58:08 +08:00
parent bbcfb47fef
commit cf719b212f
3 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ enable_perspective_error_image_save = no
device_screenshot_method = ADB device_screenshot_method = ADB
device_control_method = uiautomator2 device_control_method = uiautomator2
combat_screenshot_interval = 1. combat_screenshot_interval = 1.
enable_update_check = yes enable_update_check = no
update_method = api update_method = api
update_proxy = update_proxy =
github_token = github_token =

View File

@ -20,9 +20,9 @@ class EmulatorChecker(Device):
self._screenshot_adb() self._screenshot_adb()
while 1: while 1:
t0 = time.time() t0 = time.time()
# self._screenshot_adb() self._screenshot_adb()
# self._screenshot_uiautomator2() # self._screenshot_uiautomator2()
self._screenshot_ascreencap() # self._screenshot_ascreencap()
# self._click_adb(1270, 360) # self._click_adb(1270, 360)
# self._click_uiautomator2(1270, 360) # self._click_uiautomator2(1270, 360)

View File

@ -90,7 +90,7 @@ class Screenshot(Connection):
image = Image.fromarray(image) image = Image.fromarray(image)
return image return image
@retry(wait_fixed=5000) @retry(wait_fixed=5000, stop_max_attempt_number=10)
# @timer # @timer
def screenshot(self): def screenshot(self):
""" """