Fix issue with swarm isAvailable
This commit is contained in:
parent
fcb75dee11
commit
2dc8d8c276
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue