diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-26 04:58:32 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-26 04:58:32 +0000 |
commit | bf738a03368b8de9c574d9631f131c5a520acf7b (patch) | |
tree | a65c512ce4601b056417ff7154ebdc254d762054 /src/ftp.lua | |
parent | 4b7c2db4b7109bf57abd1b76abf24eba27f51aa1 (diff) | |
download | luasocket-bf738a03368b8de9c574d9631f131c5a520acf7b.tar.gz luasocket-bf738a03368b8de9c574d9631f131c5a520acf7b.tar.bz2 luasocket-bf738a03368b8de9c574d9631f131c5a520acf7b.zip |
Working with in the manual.
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 |