aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/dispatch.lua2
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