fix(support): return if talking to oneself

This commit is contained in:
Friedel Ziegelmayer 2016-12-13 14:01:33 +01:00
parent 90105f980b
commit 0dedc33a0f

View File

@ -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, {