diff --git a/service/debug_console.lua b/service/debug_console.lua index 2db38e46..ec4ea482 100644 --- a/service/debug_console.lua +++ b/service/debug_console.lua @@ -269,7 +269,7 @@ function COMMANDX.debug(cmd) local function forward_cmd() repeat -- notice : It's a bad practice to call socket.readline from two threads (this one and console_main_loop), be careful. - skynet.call(agent, "lua", "cmd", "ping") -- detect agent alive, if agent exit, raise error + skynet.call(agent, "lua", "ping") -- detect agent alive, if agent exit, raise error local cmdline = socket.readline(cmd.fd, "\n") cmdline = cmdline and cmdline:gsub("(.*)\r$", "%1") if not cmdline then