Merge pull request #8187 from zargot/bugfix/asyncftpclient

asyncftpclient: add missing file.close to retrFile
This commit is contained in:
Dominik Picheta 2018-07-02 17:37:39 +01:00 • committed by GitHub
commit d1f983b37c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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