diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2009-05-27 09:31:38 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2009-05-27 09:31:38 +0000 |
commit | bce60be30fe8e9c1b0eb33128c23c93d7bca5303 (patch) | |
tree | 3927343c777fcb7764a0f2f89754a0ceab141c21 /etc | |
parent | d1a72435d5bd3528f3c334cd4d1da16dcead47bf (diff) | |
download | luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.gz luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.bz2 luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.zip |
Decent makefiles!
Diffstat (limited to 'etc')
-rw-r--r-- | etc/dispatch.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/dispatch.lua b/etc/dispatch.lua index 3ef1e72..5236f3d 100644 --- a/etc/dispatch.lua +++ b/etc/dispatch.lua | |||
@@ -54,7 +54,7 @@ function socket.protect(f) | |||
54 | local results = {coroutine.resume(co, base.unpack(arg))} | 54 | local results = {coroutine.resume(co, base.unpack(arg))} |
55 | local status = table.remove(results, 1) | 55 | local status = table.remove(results, 1) |
56 | if not status then | 56 | if not status then |
57 | if type(results[1]) == 'table' then | 57 | if base.type(results[1]) == 'table' then |
58 | return nil, results[1][1] | 58 | return nil, results[1][1] |
59 | else base.error(results[1]) end | 59 | else base.error(results[1]) end |
60 | end | 60 | end |