Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed May 6, 2016
1 parent aa9fd4d commit 5a5b064
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion src/core/ipfs/libp2p.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 5a5b064

Please sign in to comment.