Skip to content

Commit 55728e3

Browse files
committed
fix: Properly cancel local tree
Signed-off-by: Marcel Klehr <[email protected]>
1 parent 4d03446 commit 55728e3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib/Account.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ export default class Account {
363363
async cancelSync():Promise<void> {
364364
if (!this.syncing) return
365365
this.server.cancel()
366+
this.getResource().then(resource => resource.cancel())
366367
if (this.syncProcess) {
367368
await this.syncProcess.cancel()
368369
}

src/lib/strategies/Default.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export default class SyncProcess {
140140
async cancel() :Promise<void> {
141141
this.canceled = true
142142
this.server.cancel()
143+
this.localTree.cancel()
143144
}
144145

145146
updateProgress():void {

0 commit comments

Comments
 (0)