Skip to content

Commit 40c12a6

Browse files
hacdiasachingbrain
authored andcommitted
fix: do not stop external IPFS node (#99)
License: MIT Signed-off-by: Henrique Dias <[email protected]>
1 parent 7489c94 commit 40c12a6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/core/commands/proxy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ module.exports = async (options) => {
3232

3333
cleanUpOps.push(() => {
3434
return new Promise((resolve) => {
35+
if (options.ipfs.node !== 'proc') {
36+
return resolve()
37+
}
38+
3539
ipfs.stop(() => {
3640
console.info('👿 IPFS node stopped') // eslint-disable-line no-console
3741
resolve()

src/core/commands/update.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ module.exports = async (options) => {
2626

2727
cleanUpOps.push(() => {
2828
return new Promise((resolve) => {
29+
if (options.ipfs.node !== 'proc') {
30+
return resolve()
31+
}
32+
2933
ipfs.stop(() => {
3034
console.info('👿 IPFS node stopped') // eslint-disable-line no-console
3135
resolve()

0 commit comments

Comments
 (0)