From 6fdb01b52a4451acf15083f2809407dfdf50e752 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Wed, 1 Jan 2025 14:06:35 +0100 Subject: [PATCH] This commit ensures the client connects on first use, instead of relying on the library to connect. (#5828) --- Duplicati/Library/Backend/FTP/FTPBackend.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Duplicati/Library/Backend/FTP/FTPBackend.cs b/Duplicati/Library/Backend/FTP/FTPBackend.cs index 00a3cea94..981a2216f 100644 --- a/Duplicati/Library/Backend/FTP/FTPBackend.cs +++ b/Duplicati/Library/Backend/FTP/FTPBackend.cs @@ -676,6 +676,7 @@ namespace Duplicati.Library.Backend }; client.ValidateCertificate += HandleValidateCertificate; + await client.Connect(cancellationToken).ConfigureAwait(false); // Set up for relative paths if (_relativePaths)