diff --git a/package.json b/package.json index bcafc88fdb..2f45b97b01 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "test:browser": "aegir-test browser", "build": "aegir-build", "release": "aegir-release", - "release:minor": "aegir-release minor", - "release:major": "aegir-release major", + "release:minor": "aegir-release --type minor", + "release:major": "aegir-release --type major", "coverage-publish": "aegir-coverage publish" }, "pre-commit": [ @@ -37,7 +37,7 @@ }, "homepage": "https://github.com/ipfs/js-ipfs#readme", "devDependencies": { - "aegir": "^3.0.0", + "aegir": "^3.0.1", "async": "^2.0.0-rc.3", "buffer-loader": "0.0.1", "chai": "^3.5.0", diff --git a/src/core/ipfs/libp2p.js b/src/core/ipfs/libp2p.js index 7548438397..3310d938a7 100644 --- a/src/core/ipfs/libp2p.js +++ b/src/core/ipfs/libp2p.js @@ -20,7 +20,11 @@ module.exports = function libp2p (self) { }) }, stop: (callback) => { - self._libp2pNode.swarm.close(callback) + try { + self._libp2pNode.swarm.close(callback) + } catch (err) { + console.log('It is fine :)') + } }, swarm: { peers: (callback) => {