From a70505b41dd37c9b80f5e7acd73efc2b614ed484 Mon Sep 17 00:00:00 2001 From: Kira Oakley Date: Fri, 12 Jun 2020 15:29:01 -0700 Subject: [PATCH] fix: wait for core to pause before closing --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d3e99ae..e77aa8f 100644 --- a/index.js +++ b/index.js @@ -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) + }) } }