Skip to content

Commit

Permalink
fix: wait for core to pause before closing
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Jun 12, 2020
1 parent 0ebd247 commit a70505b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ Cabal.prototype.close = function (cb) {
}

function close () {
self.kcore.pause()
self.kcore._logs.close(cb)
self.kcore.pause(function () {
self.kcore._logs.close(cb)
})
}
}

Expand Down

0 comments on commit a70505b

Please sign in to comment.