diff options
Diffstat (limited to 'module/network/FTPBase.py')
-rw-r--r-- | module/network/FTPBase.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/network/FTPBase.py b/module/network/FTPBase.py index 4d27585a1..da67573a3 100644 --- a/module/network/FTPBase.py +++ b/module/network/FTPBase.py @@ -133,6 +133,7 @@ class FTPDownload(): break self.fh.write(data) + self.fh.close() conn.close() self.endTime = inttime() if not self.abort: @@ -142,7 +143,7 @@ class FTPDownload(): if self.abort: self.deferred.error("abort") elif self.size is None or self.size == self.arrived: - self.deferred.callback(resp) #@TODO resp = unresolved? + self.deferred.callback() else: self.deferred.error("wrong content lenght") |