mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-27 16:33:47 +00:00
Auto keep alive debug
This commit is contained in:
parent
dd04426be2
commit
5a8bd2000d
1 changed files with 4 additions and 2 deletions
|
@ -1165,7 +1165,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
} else
|
} else
|
||||||
EntityOperation.sync(this, folder.id, false);
|
EntityOperation.sync(this, folder.id, false);
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
if (!first && !account.keep_alive_ok &&
|
if (BuildConfig.DEBUG &&
|
||||||
|
!first && !account.keep_alive_ok &&
|
||||||
account.poll_interval > 9 &&
|
account.poll_interval > 9 &&
|
||||||
state.getIdleTime() > (account.poll_interval - 1) * 60 * 1000L) {
|
state.getIdleTime() > (account.poll_interval - 1) * 60 * 1000L) {
|
||||||
account.keep_alive_failed++;
|
account.keep_alive_failed++;
|
||||||
|
@ -1183,7 +1184,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!first && !account.keep_alive_ok &&
|
if (BuildConfig.DEBUG &&
|
||||||
|
!first && !account.keep_alive_ok &&
|
||||||
account.poll_interval > 9 &&
|
account.poll_interval > 9 &&
|
||||||
state.getIdleTime() > (account.poll_interval - 1) * 60 * 1000L) {
|
state.getIdleTime() > (account.poll_interval - 1) * 60 * 1000L) {
|
||||||
account.keep_alive_ok = true;
|
account.keep_alive_ok = true;
|
||||||
|
|
Loading…
Reference in a new issue