Skip to content

Commit

Permalink
fix system teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Feb 13, 2025
1 parent db2b392 commit 93066fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ module.exports = class Autobase extends ReadyResource {

async _closeLocalCores () {
const closing = []
if (this.system) closing.push(this.system.close())
if (this._primaryBootstrap) closing.push(this._primaryBootstrap.close())
if (this.localWriter) closing.push(this._unsetLocalWriter())
closing.push(this._closeAllActiveWriters())
Expand Down
1 change: 1 addition & 0 deletions lib/apply-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ module.exports = class ApplyState extends ReadyResource {
this.interrupted = true
for (const chk of this.checkpoints) await chk.close()
if (this.base._hasClose) await this.base._handlers.close(this.view)
if (this.system) await this.system.close()

const promises = []
for (const v of this.views) {
Expand Down

0 comments on commit 93066fd

Please sign in to comment.