git ssb

4+

Dominic / scuttlebot



Commit 8a16b0bd418cece3ea84550e7642fb0e6a0025b8

Disconnect peers without error

Avoid sending 'Error: unexpected end of parent stream' stack trace
over packet-stream

%XSAqrFBfGwImiZk+AAtErkiu1bNIMBv/wA4359CwY3I=.sha256
%RmtjuPmpk81iLj8xN6/DZDIAW3Sd/rJDmHEpYpv9MjI=.sha256
cel committed on 11/19/2016, 5:57:25 AM
Parent: 5245f428648535a7ca20c6b247ffdf0e515294fa

Files changed

plugins/gossip/index.jschanged
plugins/gossip/index.jsView
@@ -111,9 +111,9 @@
111111
112112 peer.state = 'disconnecting'
113113 peer.stateChange = Date.now()
114114 if(!peer || !peer.disconnect) cb && cb()
115- else peer.disconnect(true, function (err) {
115 + else peer.disconnect(null, function (err) {
116116 peer.stateChange = Date.now()
117117 })
118118
119119 }, 'string|object'),

Built with git-ssb-web