fix debug console command : kill

This commit is contained in:
Cloud Wu
2020-10-14 16:24:04 +08:00
parent b6354a0490
commit 55f207c1d2
3 changed files with 2 additions and 3 deletions

View File

@@ -247,7 +247,7 @@ function COMMAND.mem(ti)
end
function COMMAND.kill(address)
return skynet.call(".launcher", "lua", "KILL", address)
return skynet.call(".launcher", "lua", "KILL", adjust_address(address))
end
function COMMAND.gc(ti)

View File

@@ -52,7 +52,6 @@ function command.STAT(addr, ti)
end
function command.KILL(_, handle)
handle = handle_to_address(handle)
skynet.kill(handle)
local ret = { [skynet.address(handle)] = tostring(services[handle]) }
services[handle] = nil