mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-22 07:42:52 +00:00
Yahoo: restart every minute
This commit is contained in:
parent
fc40808cb8
commit
af221f9117
1 changed files with 5 additions and 1 deletions
|
@ -1671,6 +1671,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
if (account.keep_alive_noop) {
|
||||
int timeout = prefs.getInt("timeout", EmailService.DEFAULT_CONNECT_TIMEOUT);
|
||||
if (account.isYahoo() && timeout < 60) {
|
||||
int factor = 60 / timeout;
|
||||
iservice.setRestartIdleInterval(timeout * factor);
|
||||
} else
|
||||
iservice.setRestartIdleInterval(timeout * 2 * 6); // 20 x 2 x 6 = 4 min
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue