From c729421bd22ee5e99a21b35e502bec22d2817317 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 30 May 2024 22:03:41 +0800 Subject: [PATCH] Fix: Loop in cloud_exit when task queue empty --- tasks/login/cloud.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/login/cloud.py b/tasks/login/cloud.py index 7e6fcdbb9..42b707eb1 100644 --- a/tasks/login/cloud.py +++ b/tasks/login/cloud.py @@ -422,6 +422,10 @@ class LoginAndroidCloud(ModuleBase): out: XPath.START_GAME """ logger.hr('Cloud exit') + if not self.device.app_is_running(): + logger.info('App is not running, no need to exit') + return + while 1: if skip_first: skip_first = False @@ -475,6 +479,8 @@ class LoginAndroidCloud(ModuleBase): if current != prev: break + logger.info('Cloud exited') + def cloud_keep_alive(self): """ Randomly do something to prevent being kicked