Skip to content

Commit

Permalink
revert, see issue cloudwu#579
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Mar 10, 2017
1 parent f591134 commit feab147
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lualib/skynet/coroutine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ end

do -- begin skynetco.wrap

local function wrap_co(co, ok, ...)
local function wrap_co(ok, ...)
if ok then
return ...
else
error(debug.traceback(co), 2)
error(...)
end
end

Expand All @@ -122,7 +122,7 @@ function skynetco.wrap(f)
return f(...)
end)
return function(...)
return wrap_co(co, skynetco.resume(co, ...))
return wrap_co(skynetco.resume(co, ...))
end
end

Expand Down

0 comments on commit feab147

Please sign in to comment.