From 61d13846cde40395bc2093ff1f9adeeb86f2dea6 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Wed, 12 Apr 2017 17:04:58 +0800 Subject: [PATCH] fix a bug , issue #592 --- service/debug_console.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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