Skip to content

Commit 0da7745

Browse files
authored
Merge pull request #1777 from FanDjango/master
Fix missing await and async in getreply async (specific to NOOP handl…
2 parents 5cb6bf0 + 4950dea commit 0da7745

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

FluentFTP/Client/BaseClient/GetReply.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,16 @@ async Task<FtpReply> IInternalFtpClient.GetReplyInternal(CancellationToken token
355355
if (exhaustNoop) {
356356
// tickle the server
357357
LogWithPrefix(FtpTraceLevel.Verbose, "Sending NOOP (<-GetReply)");
358-
m_stream.WriteLine(Encoding, "NOOP");
358+
await m_stream.WriteLineAsync(Encoding, "NOOP", token);
359359
LastCommandTimestamp = DateTime.UtcNow;
360360
}
361361

362362
sw.Start();
363363

364364
do {
365+
if (m_stream == null) {
366+
}
367+
365368
if (useSema && !IsConnected) {
366369
throw new InvalidOperationException("No connection to the server exists.");
367370
}

0 commit comments

Comments
 (0)