diff --git a/package.json b/package.json index a90cfc41a..bd433e011 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "eslint-plugin-react": "^7.11.1", "go-ipfs-dep": "~0.4.17", "gulp": "^3.9.1", - "interface-ipfs-core": "~0.83.0", + "interface-ipfs-core": "~0.84.2", "ipfsd-ctl": "~0.39.5", "pull-stream": "^3.6.9", "stream-equal": "^1.1.1" diff --git a/src/ping.js b/src/ping.js index 8b9081967..f3ff63ec8 100644 --- a/src/ping.js +++ b/src/ping.js @@ -46,7 +46,12 @@ module.exports = (arg) => { cb() } }), - (err) => callback(err, responses) + (err) => { + if (err) { + return callback(err) + } + callback(null, responses) + } ) }