Merge pull request #8187 from zargot/bugfix/asyncftpclient
asyncftpclient: add missing file.close to retrFile
This commit is contained in:
commit
d1f983b37c
1 changed files with 1 additions and 0 deletions
|
|
@ -304,6 +304,7 @@ proc retrFile*(ftp: AsyncFtpClient, file, dest: string,
|
||||||
raise newException(ReplyError, "Reply has no file size.")
|
raise newException(ReplyError, "Reply has no file size.")
|
||||||
|
|
||||||
await getFile(ftp, destFile, fileSize, onProgressChanged)
|
await getFile(ftp, destFile, fileSize, onProgressChanged)
|
||||||
|
destFile.close()
|
||||||
|
|
||||||
proc doUpload(ftp: AsyncFtpClient, file: File,
|
proc doUpload(ftp: AsyncFtpClient, file: File,
|
||||||
onProgressChanged: ProgressChangedProc) {.async.} =
|
onProgressChanged: ProgressChangedProc) {.async.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue