Skip to content

Commit 14d29b1

Browse files
max-nextcloudjuliusknorr
authored andcommitted
fix(sync): Clear pending autosync calls on close
This would normally happen in the save call before closing. However if that call fails (for example due to a conflict) we still clear the pending autosync calls to prevent 403s. Fixes #4080. Signed-off-by: Max <[email protected]>
1 parent 3b71af8 commit 14d29b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/SyncService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ class SyncService {
284284
}
285285

286286
async close() {
287+
// Make sure to leave no pending requests behind.
288+
this.autosave.clear()
287289
this.backend?.disconnect()
288290
return this._close()
289291
}

0 commit comments

Comments
 (0)