mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 20:38:22 +01:00
tiny bug...
This commit is contained in:
parent
cdae8c02ed
commit
5dc5c3ebe8
1
TODO
1
TODO
@ -1,3 +1,4 @@
|
|||||||
|
make sure all modules that can use socket.newtry
|
||||||
make select interrupt safe
|
make select interrupt safe
|
||||||
adicionar exemplos de expansão: pipe, local, named pipe
|
adicionar exemplos de expansão: pipe, local, named pipe
|
||||||
Add service name translation.
|
Add service name translation.
|
||||||
|
@ -106,7 +106,7 @@ function open(server, port)
|
|||||||
local tp = socket.try(tp.connect(server or SERVER, port or PORT, TIMEOUT))
|
local tp = socket.try(tp.connect(server or SERVER, port or PORT, TIMEOUT))
|
||||||
local s = setmetatable({tp = tp}, metat)
|
local s = setmetatable({tp = tp}, metat)
|
||||||
-- make sure tp is closed if we get an exception
|
-- 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
|
return s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user