Merge pull request #444 from DavidFeng/patch-1

修复调试模块调试结束后定时器没有取消的问题
This commit is contained in:
cloudwu
2016-01-22 11:05:04 +08:00
3 changed files with 3 additions and 6 deletions

View File

@@ -1,6 +1,4 @@
local io = io
local table = table
local debug = debug
return function (skynet, export)

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

View File

@@ -1,7 +1,4 @@
local si = require "snax.interface"
local io = io
local hotfix = {}
local function envid(f)
local i = 1