tiny bug...

This commit is contained in:
Diego Nehab 2004-06-19 16:35:43 +00:00
parent cdae8c02ed
commit 5dc5c3ebe8
2 changed files with 2 additions and 1 deletions

1
TODO
View File

@ -1,3 +1,4 @@
make sure all modules that can use socket.newtry
make select interrupt safe
adicionar exemplos de expansão: pipe, local, named pipe
Add service name translation.

View File

@ -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