revert, see issue #579

This commit is contained in:
Cloud Wu
2017-03-10 14:06:53 +08:00
parent f5911342e8
commit feab147563

View File

@@ -109,11 +109,11 @@ end
do -- begin skynetco.wrap do -- begin skynetco.wrap
local function wrap_co(co, ok, ...) local function wrap_co(ok, ...)
if ok then if ok then
return ... return ...
else else
error(debug.traceback(co), 2) error(...)
end end
end end
@@ -122,7 +122,7 @@ function skynetco.wrap(f)
return f(...) return f(...)
end) end)
return function(...) return function(...)
return wrap_co(co, skynetco.resume(co, ...)) return wrap_co(skynetco.resume(co, ...))
end end
end end