mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
add _CO for debug coroutine
This commit is contained in:
@@ -194,6 +194,7 @@ local function hook_dispatch(dispatcher, resp, fd, channel)
|
|||||||
|
|
||||||
local function watch_cmd(cmd)
|
local function watch_cmd(cmd)
|
||||||
local co = next(ctx_active)
|
local co = next(ctx_active)
|
||||||
|
watch_env._CO = co
|
||||||
if dbgcmd[cmd] then
|
if dbgcmd[cmd] then
|
||||||
dbgcmd[cmd](co)
|
dbgcmd[cmd](co)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user