When an account's token is expired, account-polld should stop polling that account and show notification to refresh account.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
account-polld (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When a token of an account (e.g. Google account) expires, it causes account-polld to print these messages repeatedly:
2015/06/28 20:55:35 New account data for existing account with id 3
2015/06/28 20:55:35 Starting poll for account 3
2015/06/28 20:55:35 Polling account 3
2015/06/28 20:55:35 Error while polling 3: Token expired
2015/06/28 20:55:35 Poll for account 3 has failed: Token expired
2015/06/28 20:55:35 Ending poll for account 3
It also caused CPU usage to go up to about 20%. That means account-polld is probably polling the account repeatedly. So, account-polld should stop polling that account and show notification to refresh that account.
From IRC irc.freenode.net #ubuntu-touch:
dobey: account-polld should probably create a notification for those cases that tells you what token is expired and give you a way to open accounts and log in again
dobey: and should probably flag an invalid token as invalid and ignore it until it's refreshed or whatever
Ubuntu touch willy. Image version 240.
Device: LG L90 Dual (I'm doing a port)
Normally, it should refresh its token after that. Doesn't it do that for you?