mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-18 23:09:56 +02:00
tiny bug...
This commit is contained in:
@ -106,7 +106,7 @@ function open(server, port)
|
||||
local tp = socket.try(tp.connect(server or SERVER, port or PORT, TIMEOUT))
|
||||
local s = setmetatable({tp = tp}, metat)
|
||||
-- make sure tp is closed if we get an exception
|
||||
local try = socket.newtry(function() s:close() end)
|
||||
s.try = socket.newtry(function() s:close() end)
|
||||
return s
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user