Revert "Keep folder alive when skip polling"

This reverts commit b71f8a0246.
This commit is contained in:
M66B 2021-01-22 21:24:04 +01:00
parent 130d215c01
commit 787370f8e8
1 changed files with 0 additions and 4 deletions

View File

@ -1690,10 +1690,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
} else {
if (folder.poll_count == 0)
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;
db.folder().setFolderPollCount(folder.id, folder.poll_count);
Log.i(folder.name + " poll count=" + folder.poll_count);