asyncftpclient: add missing file.close to retrFile
This commit is contained in:
parent
c79f488027
commit
e63369f2b9
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.")
|
||||
|
||||
await getFile(ftp, destFile, fileSize, onProgressChanged)
|
||||
destFile.close()
|
||||
|
||||
proc doUpload(ftp: AsyncFtpClient, file: File,
|
||||
onProgressChanged: ProgressChangedProc) {.async.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue