mirror of
https://github.com/fluencelabs/js-libp2p-secio
synced 2025-03-15 01:40:51 +00:00
fix: pass the handshake failure on
Failed handshakes abort the connection but dont inform users of the failure properly. If a remote was not successfully negotiated this could cause a peerId missing issue
This commit is contained in:
parent
0e23874730
commit
6d09b472ec
@ -24,7 +24,7 @@ module.exports = function handshake (state, callback) {
|
||||
}
|
||||
|
||||
// signal when the handshake is finished so that plumbing can happen
|
||||
callback()
|
||||
callback(err)
|
||||
})
|
||||
|
||||
return state.stream
|
||||
|
Loading…
x
Reference in New Issue
Block a user