Commit b9455599edff31b4e2d76cedc5c790004a89f0dd
reconnect: log instead of throw on connect fail
Matt McKegg committed on 10/28/2016, 1:28:00 AMParent: 3b15120201ea0a8176aeefae1a1ab25b797a2028
Files changed
api/index.js | changed |
api/index.js | ||
---|---|---|
@@ -215,9 +215,11 @@ | ||
215 | 215 … | onceTrue(profilesLoaded, () => { |
216 | 216 … | ssbClient.gossip.peers((err, peers) => { |
217 | 217 … | if (err) return cb ? cb(err) : console.log(err) |
218 | 218 … | 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 … | + }) | |
220 | 222 … | }) |
221 | 223 … | cb && cb() |
222 | 224 … | }) |
223 | 225 … | }) |
Built with git-ssb-web