Optimize sync folders

pull/194/merge
M66B 3 years ago
parent 2c9d00a1ff
commit 2a9f7c3b20

@ -2032,8 +2032,10 @@ class Core {
Log.i(account.name + " sync folders=" + sync_folders + " poll=" + sync_folders_poll + Log.i(account.name + " sync folders=" + sync_folders + " poll=" + sync_folders_poll +
" shared=" + sync_shared_folders + " force=" + force); " shared=" + sync_shared_folders + " force=" + force);
if (force || (keep_alive && sync_folders_poll)) if (force)
sync_folders = true; sync_folders = true;
if (keep_alive)
sync_folders = sync_folders_poll;
if (!sync_folders) if (!sync_folders)
sync_shared_folders = false; sync_shared_folders = false;

@ -2047,9 +2047,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
" poll count=" + folder.poll_count + " poll count=" + folder.poll_count +
" factor=" + folder.poll_factor); " factor=" + folder.poll_factor);
} }
Core.onSynchronizeFolders(this, if (!first)
account, iservice.getStore(), state, Core.onSynchronizeFolders(this,
true, false); account, iservice.getStore(), state,
true, false);
} }
} catch (Throwable ex) { } catch (Throwable ex) {
if (tune) { if (tune) {

Loading…
Cancel
Save