asyncftpclient: add missing file.close to retrFile

This commit is contained in:
zargot
2018-07-02 18:07:24 +02:00
committed by GitHub
parent c79f488027
commit e63369f2b9

View File

@@ -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.} =