Skip to content

Commit

Permalink
fix(Account#sync): Do not break lock automatically
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Nov 30, 2024
1 parent 111aed7 commit 3f1055b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ export default class Account {
try {
status = await this.server.onSyncStart(needLock, forceSync)
} catch (e) {
await this.server.onSyncFail()
// Resource locked
if (e.code === 37) {
// We got a resource locked error
Expand All @@ -198,6 +197,7 @@ export default class Account {
return
}
} else {
await this.server.onSyncFail()
throw e
}
}
Expand Down

0 comments on commit 3f1055b

Please sign in to comment.