From 65a3f3ed3b475958e6a685690aa548dcd4573967 Mon Sep 17 00:00:00 2001 From: JabLuszko Date: Wed, 6 Sep 2023 12:36:49 +0200 Subject: [PATCH] Update AbstractWorkerStrategy.py --- mapadroid/worker/strategy/AbstractWorkerStrategy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mapadroid/worker/strategy/AbstractWorkerStrategy.py b/mapadroid/worker/strategy/AbstractWorkerStrategy.py index 19a3d9d8b..28b0b9a2d 100644 --- a/mapadroid/worker/strategy/AbstractWorkerStrategy.py +++ b/mapadroid/worker/strategy/AbstractWorkerStrategy.py @@ -316,11 +316,9 @@ async def _handle_screen(self): screen_type: ScreenType = ScreenType.UNDEFINED while not self._worker_state.stop_worker_event.is_set(): if self._worker_state.login_error_count > 2: - logger.warning('Could not login again - (clearing game data + restarting device') + logger.warning('Could not login again - clearing game data and restarting device') await self.stop_pogo() - await self._communicator.clear_app_cache("com.nianticlabs.pokemongo") - if await self.get_devicesettings_value(MappingManagerDevicemappingKey.CLEAR_GAME_DATA, False): - await self._clear_game_data() + await self._clear_game_data() self._worker_state.login_error_count = 0 await self._reboot() break