Skip to content

Commit 712ae0a

Browse files
committed
fix(continuations): Set current continuation to null at the very end
Signed-off-by: Marcel Klehr <[email protected]>
1 parent d5d847b commit 712ae0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/Account.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ export default class Account {
301301

302302
this.syncing = false
303303

304-
await this.storage.setCurrentContinuation(null)
305304
await this.setData({
306305
error: null,
307306
errorCount: 0,
@@ -310,6 +309,8 @@ export default class Account {
310309
lastSync: Date.now(),
311310
})
312311

312+
await this.storage.setCurrentContinuation(null)
313+
313314
Logger.log(
314315
'Successfully ended sync process for account ' + this.getLabel()
315316
)

src/lib/strategies/Default.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ export default class SyncProcess {
317317
throw new CancelledSyncError()
318318
}
319319

320-
321320
Logger.log('Executing local stage 2 plan')
322321
await this.executeStage2(this.localTree, this.localPlanStage2, ItemLocation.LOCAL, this.localDonePlan, this.prelimLocalReorders)
323322

0 commit comments

Comments
 (0)