Skip to content

Commit

Permalink
also reject in destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Dec 12, 2024
1 parent 2a743e7 commit 2b2700d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ class AtomicBatch {
if (this.destroyed) {
this.destroyed = false
batch.destroy()
if (reject !== null) reject(new Error('Atomic batch destroyed'))
return
}

Expand Down

0 comments on commit 2b2700d

Please sign in to comment.