Skip to content

Commit

Permalink
ditto in ASYNC
Browse files Browse the repository at this point in the history
  • Loading branch information
FanDjango committed Feb 18, 2022
1 parent d9ccc81 commit 91ee5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FluentFTP/Client/FtpClient_FileDownload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ private async Task<bool> DownloadFileInternalAsync(string localPath, string remo

// fix: attempting to download data after we reached the end of the stream
// often throws a timeout exception, so we silently absorb that here
if (offset >= fileLen) {
if (offset >= fileLen && !readToEnd) {
break;
}
else {
Expand Down

0 comments on commit 91ee5b7

Please sign in to comment.