From d34b092cdd3bf0cfe707c0dcc5829eb09b2a4f99 Mon Sep 17 00:00:00 2001 From: David Feng Date: Fri, 22 Jan 2016 10:28:03 +0800 Subject: [PATCH] =?UTF-8?q?remotedebug.lua=20call=20skynet.timeout()=20onl?= =?UTF-8?q?y=20in=20debug=20hook=20=E5=AE=9A=E6=97=B6=E5=99=A8=E5=9C=A8deb?= =?UTF-8?q?ug=E7=BB=93=E6=9D=9F=E5=90=8E=E6=B2=A1=E6=9C=89=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lualib/skynet/remotedebug.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lualib/skynet/remotedebug.lua b/lualib/skynet/remotedebug.lua index 1fa04155..ccb4f8f9 100644 --- a/lualib/skynet/remotedebug.lua +++ b/lualib/skynet/remotedebug.lua @@ -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