From 0dedc33a0f3267c80bd12f9cb0ec84cd7f44c019 Mon Sep 17 00:00:00 2001 From: Friedel Ziegelmayer Date: Tue, 13 Dec 2016 14:01:33 +0100 Subject: [PATCH] fix(support): return if talking to oneself --- src/support.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support.js b/src/support.js index 02ebe4f..71eba0e 100644 --- a/src/support.js +++ b/src/support.js @@ -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, {