diff --git a/index.js b/index.js index b2fbe1c..fa21cf7 100644 --- a/index.js +++ b/index.js @@ -310,6 +310,7 @@ class AtomicBatch { if (this.destroyed) { this.destroyed = false batch.destroy() + if (reject !== null) reject(new Error('Atomic batch destroyed')) return }