Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: is online is only online if libp2p is online
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte committed Jul 6, 2017
1 parent 8735a08 commit 3be165d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/is-online.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module.exports = function isOnline (self) {
return () => {
return Boolean(self._bitswap && self._libp2pNode)
return Boolean(self._bitswap && self._libp2pNode && self._libp2pNode.isOn())
}
}

0 comments on commit 3be165d

Please sign in to comment.