Skip to content

Commit

Permalink
fix: do not stop external IPFS node (#99)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
hacdias authored and achingbrain committed May 13, 2019
1 parent 7489c94 commit 40c12a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/commands/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ module.exports = async (options) => {

cleanUpOps.push(() => {
return new Promise((resolve) => {
if (options.ipfs.node !== 'proc') {
return resolve()
}

ipfs.stop(() => {
console.info('👿 IPFS node stopped') // eslint-disable-line no-console
resolve()
Expand Down
4 changes: 4 additions & 0 deletions src/core/commands/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ module.exports = async (options) => {

cleanUpOps.push(() => {
return new Promise((resolve) => {
if (options.ipfs.node !== 'proc') {
return resolve()
}

ipfs.stop(() => {
console.info('👿 IPFS node stopped') // eslint-disable-line no-console
resolve()
Expand Down

0 comments on commit 40c12a6

Please sign in to comment.