mirror of
https://github.com/etesync/android
synced 2025-02-02 19:01:06 +00:00
Syncmanager: don't try to fetch again if we already fetched everything.
This patch changes the fetching so if the last fetch returned less entries than the limit, we don't try and fetch again because we already know there are no others left.
This commit is contained in:
parent
2b0b35c9be
commit
28aa80fe07
@ -166,7 +166,7 @@ abstract public class SyncManager {
|
|||||||
syncPhase = R.string.sync_phase_apply_remote_entries;
|
syncPhase = R.string.sync_phase_apply_remote_entries;
|
||||||
App.log.info("Sync phase: " + context.getString(syncPhase));
|
App.log.info("Sync phase: " + context.getString(syncPhase));
|
||||||
applyRemoteEntries();
|
applyRemoteEntries();
|
||||||
} while (remoteEntries.size() > 0);
|
} while (remoteEntries.size() == MAX_FETCH);
|
||||||
|
|
||||||
/* Create journal entries out of local changes. */
|
/* Create journal entries out of local changes. */
|
||||||
if (Thread.interrupted())
|
if (Thread.interrupted())
|
||||||
|
Loading…
Reference in New Issue
Block a user