Skip to content

Comments

After 1 hour relogin#705

Closed
kediboregi wants to merge 1 commit intoPokemonGoF:devfrom
kediboregi:dev
Closed

After 1 hour relogin#705
kediboregi wants to merge 1 commit intoPokemonGoF:devfrom
kediboregi:dev

Conversation

@kediboregi
Copy link

Fixes:

  • because after 1 hour bot gonna stuck loop

because after 1 hour bot gonna stuck loop
@MikeDX
Copy link
Contributor

MikeDX commented Jul 24, 2016

Would be much better to check the expiry time of the login token and relogin when that has failed rather than some arbitrary time which may be wrong if the auth token expires sooner

@MikeDX
Copy link
Contributor

MikeDX commented Jul 24, 2016

Just tested this, and it doesn't work since you are setting the statedtime to the current time each loop, so it will never reach startedtime+60*60.

@kediboregi
Copy link
Author

i tested man its worked. startedtime setted on bot login

@MikeDX
Copy link
Contributor

MikeDX commented Jul 25, 2016

It might work but it is a bodge. I've submitted a correct patch that checks the session time, which then refreshes once the token is about to expire.

@ProjectBarks
Copy link

ProjectBarks commented Jul 25, 2016

#735 fixes this but thanks for all the great help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants