From a17d953334a8361197f5b0801caaa0be5953170e Mon Sep 17 00:00:00 2001 From: xjtdy888 Date: Tue, 21 Nov 2017 14:58:18 +0000 Subject: [PATCH] lib/connections: Actually make connection attempts for lower priority addresses as well Skip-check: authors GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4535 --- lib/connections/service.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/connections/service.go b/lib/connections/service.go index 52e29f6b..d64ffae6 100644 --- a/lib/connections/service.go +++ b/lib/connections/service.go @@ -756,12 +756,11 @@ func dialParallel(deviceID protocol.DeviceID, dialTargets []dialTarget) (interna conn.Close() } }(deviceID, prio) + return conn, ok } else { // Failed to connect, report that fact. l.Debugln("failed to connect to", deviceID, prio) } - - return conn, ok } return internalConn{}, false }