Skip to content

Commit

Permalink
Cutoff called before sync
Browse files Browse the repository at this point in the history
As requested by DAE on #5923 (comment)

This ensure that unburying occurs before sync if needed.
  • Loading branch information
Arthur-Milchior authored and mikehardy committed Aug 28, 2020
1 parent d7e70f6 commit 03461ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AnkiDroid/src/main/java/com/ichi2/libanki/sync/Syncer.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public Object[] sync() throws UnknownHttpResponseException {
public Object[] sync(Connection con) throws UnknownHttpResponseException {
mSyncMsg = "";
// if the deck has any pending changes, flush them first and bump mod time
mCol.getSched()._updateCutoff();
mCol.save();
// step 1: login & metadata
Response ret = mServer.meta();
Expand Down

0 comments on commit 03461ab

Please sign in to comment.