-
-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix long standing SYNC/ASYNC method interface mixup #1422
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
using System; | ||
using System.Net; | ||
using System.Threading.Tasks; | ||
using FluentFTP.Client.BaseClient; | ||
|
||
namespace FluentFTP { | ||
|
@@ -93,10 +94,11 @@ public partial class FtpClient : BaseFtpClient, IInternalFtpClient, IDisposable, | |
#endregion | ||
|
||
void IInternalFtpClient.ConnectInternal(bool reConnect) { | ||
Connect(reConnect); | ||
((IFtpClient)this).Connect(reConnect); | ||
} | ||
|
||
void IInternalFtpClient.DisconnectInternal() { | ||
Disconnect(); | ||
((IFtpClient)this).Disconnect(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably the cause of #1461 as dispose doesn't use an async disconnect There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trouble is, it should, as it (often) invokes an Execute to issue a QUIT command, which should also run async on an async client. So, it needs a little more finesse - the entire Dispose method would need asyncification, so to speak, in case the client is of type AsyncFtpClient. |
||
} | ||
|
||
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or this #1461