mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
add debug command: exit
This commit is contained in:
@@ -39,6 +39,10 @@ function dbgcmd.INFO()
|
||||
end
|
||||
end
|
||||
|
||||
function dbgcmd.EXIT()
|
||||
skynet.exit()
|
||||
end
|
||||
|
||||
local function _debug_dispatch(session, address, cmd, ...)
|
||||
local f = dbgcmd[cmd]
|
||||
assert(f, cmd)
|
||||
@@ -53,4 +57,4 @@ skynet.register_protocol {
|
||||
dispatch = _debug_dispatch,
|
||||
}
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user