From 2dc8d8c276b0ef256bedab8af43b3bb9332e70e3 Mon Sep 17 00:00:00 2001 From: emizzle Date: Thu, 6 Sep 2018 21:57:10 +1000 Subject: [PATCH] Fix issue with swarm isAvailable --- lib/modules/swarm/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/modules/swarm/index.js b/lib/modules/swarm/index.js index 5e5278d8..741c49ea 100644 --- a/lib/modules/swarm/index.js +++ b/lib/modules/swarm/index.js @@ -39,8 +39,7 @@ class Swarm { // swarm needs geth to be running first this.events.once(constants.blockchain.blockchainReady, () => { this.swarm.isAvailable((err, isAvailable) => { - if (err) return this.logger.error('Error checking swarm availability', err); - if (isAvailable) { + if (!err || isAvailable) { this.logger.info("Swarm node found, using currently running node"); return; }