Skip to content

Commit

Permalink
Update AbstractWorkerStrategy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JabLuszko authored Sep 6, 2023
1 parent 27a302a commit 65a3f3e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mapadroid/worker/strategy/AbstractWorkerStrategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65a3f3e

Please sign in to comment.