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
|
// swarm needs geth to be running first
|
||||||
this.events.once(constants.blockchain.blockchainReady, () => {
|
this.events.once(constants.blockchain.blockchainReady, () => {
|
||||||
this.swarm.isAvailable((err, isAvailable) => {
|
this.swarm.isAvailable((err, isAvailable) => {
|
||||||
if (err) return this.logger.error('Error checking swarm availability', err);
|
if (!err || isAvailable) {
|
||||||
if (isAvailable) {
|
|
||||||
this.logger.info("Swarm node found, using currently running node");
|
this.logger.info("Swarm node found, using currently running node");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue