aboutsummaryrefslogtreecommitdiff
path: root/src/ftp.lua
diff options
context:
space:
mode:
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 d3a48d4..18d22f7 100644
--- a/src/ftp.lua
+++ b/src/ftp.lua
@@ -36,7 +36,7 @@ PASSWORD = "anonymous@anonymous.org"
36local metat = { __index = {} } 36local metat = { __index = {} }
37 37
38function open(server, port, create) 38function open(server, port, create)
39 local tp = socket.try(tp.connect(server, port or PORT, create, TIMEOUT)) 39 local tp = socket.try(tp.connect(server, port or PORT, TIMEOUT, create))
40 local f = base.setmetatable({ tp = tp }, metat) 40 local f = base.setmetatable({ tp = tp }, metat)
41 -- make sure everything gets closed in an exception 41 -- make sure everything gets closed in an exception
42 f.try = socket.newtry(function() f:close() end) 42 f.try = socket.newtry(function() f:close() end)