diff options
Diffstat (limited to 'src/ftp.lua')
| -rw-r--r-- | src/ftp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftp.lua b/src/ftp.lua index ee1f9aa..306b77f 100644 --- a/src/ftp.lua +++ b/src/ftp.lua | |||
| @@ -114,7 +114,7 @@ function metat.__index:send(sendt) | |||
| 114 | if err then data:close() end | 114 | if err then data:close() end |
| 115 | return ret, err | 115 | return ret, err |
| 116 | end | 116 | end |
| 117 | local sink = socket.sink("close-when-empty", data) | 117 | local sink = socket.sink("close-when-done", data) |
| 118 | socket.try(ltn12.pump.all(sendt.source, sink, checkstep)) | 118 | socket.try(ltn12.pump.all(sendt.source, sink, checkstep)) |
| 119 | if string.find(code, "1..") then socket.try(self.tp:check("2..")) end | 119 | if string.find(code, "1..") then socket.try(self.tp:check("2..")) end |
| 120 | return 1 | 120 | return 1 |
