add debug command: exit

This commit is contained in:
Cloud Wu
2014-08-13 19:37:26 +08:00
parent 845acd3314
commit 809e6c3a89
4 changed files with 13 additions and 1 deletions

View File

@@ -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