git ssb

7+

dinoworm 🐛 / patchcore



Commit 21cff15e65dacbb73a3c28e8c5434aee1e41784f

remove from local peers list on disconnect

Matt McKegg committed on 2/11/2018, 11:18:14 PM
Parent: f379402d0c78ad0469d94960abe197a33f6e54c5

Files changed

sbot.jschanged
sbot.jsView
@@ -108,9 +108,9 @@
108108 pull(
109109 sbot.gossip.changes(),
110110 pull.drain(data => {
111111 if (data.peer) {
112- if (data.type === 'remove') {
112 + if (data.type === 'remove' || data.type === 'disconnect') {
113113 connectedPeers.delete(data.peer.key)
114114 localPeers.delete(data.peer.key)
115115 } else {
116116 if (data.peer.source === 'local') {

Built with git-ssb-web