Skip to content

Commit

Permalink
Fix swarm destroy cb not getting called
Browse files Browse the repository at this point in the history
  • Loading branch information
RangerMauve committed Aug 5, 2019
1 parent b426dd0 commit 878bbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 878bbb2

Please sign in to comment.