mirror of
https://github.com/fluencelabs/js-libp2p-secio
synced 2025-05-13 23:01:19 +00:00
fix(support): return if talking to oneself
This commit is contained in:
parent
90105f980b
commit
0dedc33a0f
@ -100,7 +100,7 @@ exports.selectBest = (local, remote, cb) => {
|
||||
const order = Buffer.compare(oh1, oh2)
|
||||
|
||||
if (order === 0) {
|
||||
cb(new Error('you are trying to talk to yourself'))
|
||||
return cb(new Error('you are trying to talk to yourself'))
|
||||
}
|
||||
|
||||
cb(null, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user