mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-25 05:42:48 +08:00
Fix: Catch account kicked by server maintenance
This commit is contained in:
@@ -173,6 +173,12 @@ class InfoHandler(ModuleBase):
|
|||||||
if not self.device.app_is_running():
|
if not self.device.app_is_running():
|
||||||
logger.error('Detected hot fixes from game server, game died')
|
logger.error('Detected hot fixes from game server, game died')
|
||||||
raise GameNotRunningError
|
raise GameNotRunningError
|
||||||
|
if self.match_template_color(LOGIN_CHECK, offset=(30, 30)):
|
||||||
|
logger.error('Account logged out, '
|
||||||
|
'probably because account kicked by server maintenance or another log in')
|
||||||
|
# Kill game, because game patches after maintenance can only be downloaded at game startup
|
||||||
|
self.device.app_stop()
|
||||||
|
raise GameNotRunningError
|
||||||
self._hot_fix_check_wait.clear()
|
self._hot_fix_check_wait.clear()
|
||||||
|
|
||||||
return appear
|
return appear
|
||||||
|
|||||||
Reference in New Issue
Block a user