mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
[local-sync] Correctly interrup! (don't wait for interruption)
This commit is contained in:
parent
87c5dd49b2
commit
3cbd7e0e88
1 changed files with 1 additions and 1 deletions
|
@ -432,7 +432,7 @@ class SyncWorker {
|
|||
|
||||
async interrupt({reason = 'No reason'} = {}) {
|
||||
console.log(`🔃 Interrupting sync! Reason: ${reason}`)
|
||||
const interruptPromises = [await this._interruptible.interrupt()]
|
||||
const interruptPromises = [this._interruptible.interrupt()]
|
||||
if (this._currentTask) {
|
||||
interruptPromises.push(this._currentTask.interrupt())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue