mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
bugfix: turn trace off before request return
This commit is contained in:
@@ -95,6 +95,9 @@ function suspend(co, result, command, param, size)
|
|||||||
trace_count()
|
trace_count()
|
||||||
error(debug.traceback(co))
|
error(debug.traceback(co))
|
||||||
end
|
end
|
||||||
|
-- c.send maybe throw a error, so call trace_count first.
|
||||||
|
-- The coroutine execute time after skynet.ret() will not be trace.
|
||||||
|
trace_count()
|
||||||
c.send(co_address, 1, co_session, param, size)
|
c.send(co_address, 1, co_session, param, size)
|
||||||
return suspend(co, coroutine.resume(co))
|
return suspend(co, coroutine.resume(co))
|
||||||
elseif command == "EXIT" then
|
elseif command == "EXIT" then
|
||||||
|
|||||||
Reference in New Issue
Block a user