Background sync, simplifications

This commit is contained in:
M66B
2019-03-02 07:43:12 +00:00
parent 4b308382c9
commit 3e86195cd8
8 changed files with 10 additions and 46 deletions

View File

@@ -581,7 +581,7 @@ public class ServiceSynchronize extends LifecycleService {
idler.start();
idlers.add(idler);
EntityOperation.sync(this, folder.id);
EntityOperation.sync(this, folder.id, false);
} else
folders.put(folder, null);
@@ -722,7 +722,7 @@ public class ServiceSynchronize extends LifecycleService {
if (!folders.get(folder).isOpen())
throw new FolderClosedException(folders.get(folder));
} else
EntityOperation.sync(this, folder.id);
EntityOperation.sync(this, folder.id, false);
// Successfully connected: reset back off time
backoff = CONNECT_BACKOFF_START;