Skip to content

Commit

Permalink
Increase hardcoded timeout for pogo login for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Grennith committed Dec 20, 2023
1 parent 5719ef1 commit 03db032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapadroid/ocr/screenPath.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ async def __handle_google_login(self, screentype) -> ScreenType:
usernames_to_check_for: List[str] = usernames.split(",")
if await self.parse_ggl(await self._communicator.uiautomator(), usernames_to_check_for):
logger.info("Sleeping 50 seconds after clicking the account to login with - please wait!")
await asyncio.sleep(50)
await asyncio.sleep(120)
await self._communicator.passthrough(
"su -c 'am broadcast -a com.mad.pogodroid.SET_INTENTIONAL_STOP -c android.intent.category.DEFAULT -n com.mad.pogodroid/.IntentionalStopSetterReceiver --ez value false'")
await asyncio.sleep(5)
Expand Down Expand Up @@ -519,7 +519,7 @@ async def __handle_ptc_login(self) -> ScreenType:
if accept_x and accept_y:
await self._communicator.click(accept_x, accept_y)
logger.info("Clicking Log In and sleeping 50 seconds - please wait!")
await asyncio.sleep(50)
await asyncio.sleep(120)
# Start pogodroid service again to make sure we are running PD properly here
await self._communicator.passthrough(
"su -c 'am broadcast -a com.mad.pogodroid.SET_INTENTIONAL_STOP -c android.intent.category.DEFAULT -n com.mad.pogodroid/.IntentionalStopSetterReceiver --ez value false'")
Expand Down

0 comments on commit 03db032

Please sign in to comment.