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=.sha256cel committed on 11/19/2016, 5:57:25 AM
Parent: 5245f428648535a7ca20c6b247ffdf0e515294fa
Files changed
plugins/gossip/index.js | changed |
plugins/gossip/index.js | ||
---|---|---|
@@ -111,9 +111,9 @@ | ||
111 | 111 … | |
112 | 112 … | peer.state = 'disconnecting' |
113 | 113 … | peer.stateChange = Date.now() |
114 | 114 … | if(!peer || !peer.disconnect) cb && cb() |
115 | - else peer.disconnect(true, function (err) { | |
115 … | + else peer.disconnect(null, function (err) { | |
116 | 116 … | peer.stateChange = Date.now() |
117 | 117 … | }) |
118 | 118 … | |
119 | 119 … | }, 'string|object'), |
Built with git-ssb-web