Skip to content

Commit

Permalink
Fix robinrodricks#812 : IsAuthenticated is not updated when calling C…
Browse files Browse the repository at this point in the history
…onnectAsync
  • Loading branch information
datvm committed Dec 28, 2021
1 parent e5b4436 commit 9187f0d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions FluentFTP/Client/FtpClient_Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,14 @@ protected virtual async Task AuthenticateAsync(string userName, string password,
if (!reply.Success) {
throw new FtpAuthenticationException(reply);
}
else
{
m_IsAuthenticated = true;
}
}
else if (reply.Type == FtpResponseType.PositiveCompletion)
{
m_IsAuthenticated = true;
}
}
}
Expand Down

0 comments on commit 9187f0d

Please sign in to comment.