Browse Source

Add keep alive wait to log

main
M66B 6 years ago
parent
commit
8f784c8954
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -954,7 +954,8 @@ public class ServiceSynchronize extends LifecycleService {
try {
// Keep store alive
while (state.running) {
Log.i(Helper.TAG, account.name + " wait");
EntityLog.log(this, account.name + " wait=" + account.poll_interval);
synchronized (state) {
try {
state.wait(account.poll_interval * 60 * 1000L);


Loading…
Cancel
Save