git ssb

5+

Matt McKegg / ferment



Commit b9455599edff31b4e2d76cedc5c790004a89f0dd

reconnect: log instead of throw on connect fail

Matt McKegg committed on 10/28/2016, 1:28:00 AM
Parent: 3b15120201ea0a8176aeefae1a1ab25b797a2028

Files changed

api/index.jschanged
api/index.jsView
@@ -215,9 +215,11 @@
215215 onceTrue(profilesLoaded, () => {
216216 ssbClient.gossip.peers((err, peers) => {
217217 if (err) return cb ? cb(err) : console.log(err)
218218 peers.filter((p) => p.state !== 'connected' && profiles.pubIds.has(p.key)).forEach((peer) => {
219- ssbClient.gossip.connect(peer)
219 + ssbClient.gossip.connect(peer, (err) => {
220 + if (err) console.log(err)
221 + })
220222 })
221223 cb && cb()
222224 })
223225 })

Built with git-ssb-web