mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Fix: fixed bluestacks hyper-v multi-instance support
This commit is contained in:
@@ -86,6 +86,7 @@ class LoginHandler(Combat):
|
||||
continue
|
||||
|
||||
logger.warning('Login failed more than 3')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Login failed more than 3')
|
||||
raise ScriptError('Login failed more than 3')
|
||||
|
||||
def app_restart(self):
|
||||
@@ -127,6 +128,7 @@ class LoginHandler(Combat):
|
||||
def handle_game_stuck(self):
|
||||
logger.warning(f'{self.config.PACKAGE_NAME} will be restart in 10 seconds')
|
||||
logger.warning('If you are playing by hand, please stop Alas')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Game stucked, will be restart in 10 seconds')
|
||||
self.device.sleep(10)
|
||||
|
||||
self.app_restart()
|
||||
|
||||
Reference in New Issue
Block a user