remotedebug.lua call skynet.timeout() only in debug hook

定时器在debug结束后没有取消。
This commit is contained in:
David Feng
2016-01-22 10:28:03 +08:00
parent 77f4071191
commit d34b092cdd

View File

@@ -244,7 +244,9 @@ local function hook_dispatch(dispatcher, resp, fd, channel)
func = replace_upvalue(dispatcher, HOOK_FUNC, hook)
if func then
local function idle()
skynet.timeout(10,idle) -- idle every 0.1s
if raw_dispatcher then
skynet.timeout(10,idle) -- idle every 0.1s
end
end
skynet.timeout(0, idle)
end