Revert "Keep folder alive when skip polling"

This reverts commit b71f8a0246.
pull/192/head
M66B 4 years ago
parent 130d215c01
commit 787370f8e8

@ -1690,10 +1690,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
} else { } else {
if (folder.poll_count == 0) if (folder.poll_count == 0)
EntityOperation.sync(this, folder.id, false); EntityOperation.sync(this, folder.id, false);
else {
if (!mapFolders.get(folder).isOpen())
throw new StoreClosedException(iservice.getStore(), "NOOP " + folder.name);
}
folder.poll_count = (folder.poll_count + 1) % folder.poll_factor; folder.poll_count = (folder.poll_count + 1) % folder.poll_factor;
db.folder().setFolderPollCount(folder.id, folder.poll_count); db.folder().setFolderPollCount(folder.id, folder.poll_count);
Log.i(folder.name + " poll count=" + folder.poll_count); Log.i(folder.name + " poll count=" + folder.poll_count);

Loading…
Cancel
Save