mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
fix a debug_console error
This commit is contained in:
@@ -231,7 +231,7 @@ function COMMAND.debug(address, fd)
|
||||
skynet.fork(function()
|
||||
repeat
|
||||
local cmdline = socket.readline(fd, "\n")
|
||||
cmdline = cmdline:gsub("(.*)\r$", "%1")
|
||||
cmdline = cmdline and cmdline:gsub("(.*)\r$", "%1")
|
||||
if not cmdline then
|
||||
skynet.send(agent, "lua", "cmd", "cont")
|
||||
break
|
||||
@@ -275,5 +275,3 @@ function COMMAND.shrtbl()
|
||||
local n, total, longest, space = memory.ssinfo()
|
||||
return { n = n, total = total, longest = longest, space = space }
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user