mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
support empty line
This commit is contained in:
@@ -65,6 +65,7 @@ local function hook_dispatch(dispatcher, resp, fd, channel)
|
||||
if cmd == "cont" then
|
||||
break
|
||||
end
|
||||
if cmd ~= "" then
|
||||
if sleep then
|
||||
if cmd == "c" then
|
||||
print "continue..."
|
||||
@@ -85,6 +86,7 @@ local function hook_dispatch(dispatcher, resp, fd, channel)
|
||||
if f then
|
||||
print(select(2,pcall(f)))
|
||||
end
|
||||
end
|
||||
newline = true
|
||||
else
|
||||
-- no input
|
||||
|
||||
@@ -228,9 +228,7 @@ function COMMAND.debug(address, fd)
|
||||
skynet.send(agent, "lua", "cmd", "cont")
|
||||
break
|
||||
end
|
||||
if cmdline ~= "" then
|
||||
skynet.send(agent, "lua", "cmd", cmdline)
|
||||
end
|
||||
until stop or cmdline == "cont"
|
||||
end)
|
||||
skynet.call(agent, "lua", "start", address, fd)
|
||||
|
||||
Reference in New Issue
Block a user