Skip to content

Commit

Permalink
remove storage references on close
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Nov 15, 2023
1 parent bc2f0f6 commit 9cedee0
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 @@ -115,6 +115,7 @@ class MultiCoreIndexer extends TypedEmitter {
const promisifiedClose = promisify(storage.close.bind(storage))
storageClosePromises.push(promisifiedClose())
}
this.#storages.clear()
await Promise.all(storageClosePromises)
}

Expand Down

0 comments on commit 9cedee0

Please sign in to comment.