From c4973242121d1319638cb836a39da4e6bbe064f6 Mon Sep 17 00:00:00 2001 From: MegaBrutal Date: Wed, 21 Nov 2018 16:14:56 +0100 Subject: [PATCH] (Relay) Minor optimization to TRelayer.OpenConnection modified: Relay.pas --- Relay.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Relay.pas b/Relay.pas index 3df2b33..bcbcc9d 100644 --- a/Relay.pas +++ b/Relay.pas @@ -333,9 +333,8 @@ begin if MXList.Count >= 1 then begin TCP:= TTCPRFCConnection.Create; TCP.SetBindAddress(MainServerConfig.BindAddress); - TCP.Connect(MXList.Strings[0], RelayServerPort); TCP.SetSockTimeOut(DEF_SOCK_TIMEOUT); - i:= 1; + i:= 0; while (not TCP.Connected) and (i < MXList.Count) do begin TCP.Connect(MXList.Strings[i], RelayServerPort); Inc(i); -- 2.34.1