bugfix: turn trace off before request return

This commit is contained in:
云风
2013-08-20 18:29:18 +08:00
parent 8455c45b83
commit 6981dd3009

View File

@@ -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