Commit 9062bc4c96853910b299d0c0fe37db5b50dc7baa
Merge pull request #13 from ssbc/browser-gossip
don't throw sbot.gossip.peers errorMatt McKegg authored on 4/14/2017, 11:02:06 AM
GitHub committed on 4/14/2017, 11:02:06 AM
Parent: f5c806e6031dd866914fe21460c6e9ee962d43af
Parent: 377c8e80ded6586633d47e9bc446ee5317770603
Files changed
sbot.js | changed |
sbot.js | ||
---|---|---|
@@ -225,9 +225,9 @@ | ||
225 | 225 … | |
226 | 226 … | function refreshPeers () { |
227 | 227 … | if (sbot) { |
228 | 228 … | sbot.gossip.peers((err, peers) => { |
229 | - if (err) throw console.log(err) | |
229 … | + if (err) return console.error(err) | |
230 | 230 … | connectedPeers.set(peers.filter(x => x.state === 'connected').map(x => x.key)) |
231 | 231 … | localPeers.set(peers.filter(x => x.source === 'local').map(x => x.key)) |
232 | 232 … | }) |
233 | 233 … | } |
Built with git-ssb-web