From 878bbb271c66da844e8b4a02b38a8138b1631628 Mon Sep 17 00:00:00 2001 From: RangerMauve Date: Mon, 5 Aug 2019 15:02:49 -0400 Subject: [PATCH] Fix swarm destroy cb not getting called --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9880188..f32e61d 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ function SDK ({ storageOpts, swarmOpts, driveOpts, coreOpts, dnsOpts } = {}) { core.close() } - swarm.close(cb) + swarm.close().then(cb, cb) } function resolveName (url, cb) {