aboutsummaryrefslogtreecommitdiff
path: root/src/ftp.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-26 04:58:32 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-26 04:58:32 +0000
commitbf738a03368b8de9c574d9631f131c5a520acf7b (patch)
treea65c512ce4601b056417ff7154ebdc254d762054 /src/ftp.lua
parent4b7c2db4b7109bf57abd1b76abf24eba27f51aa1 (diff)
downloadluasocket-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.lua2
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