Skip to content

Commit

Permalink
Merge pull request robinrodricks#1679 from FanDjango/master
Browse files Browse the repository at this point in the history
This reconnect totally incomplete and also unneeded
  • Loading branch information
FanDjango authored Nov 8, 2024
2 parents 509492b + 2e04adf commit 544d351
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions FluentFTP/Client/AsyncClient/OpenDataStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ public partial class AsyncFtpClient {

LogFunction(nameof(OpenDataStreamAsync), new object[] { command, restart });

if (!IsConnected) {
LogWithPrefix(FtpTraceLevel.Warn, "Reconnect due to disconnected control connection");
await Connect(true, token);
}

// The PORT and PASV commands do not work with IPv6 so
// if either one of those types are set change them
// to EPSV or EPRT appropriately.
Expand Down
5 changes: 0 additions & 5 deletions FluentFTP/Client/SyncClient/OpenDataStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ protected FtpDataStream OpenDataStream(string command, long restart) {

LogFunction(nameof(OpenDataStream), new object[] { command, restart });

if (!IsConnected) {
LogWithPrefix(FtpTraceLevel.Warn, "Reconnect due to disconnected control connection");
Connect(true);
}

// The PORT and PASV commands do not work with IPv6 so
// if either one of those types are set change them
// to EPSV or EPRT appropriately.
Expand Down

0 comments on commit 544d351

Please sign in to comment.