support empty line

This commit is contained in:
Cloud Wu
2015-02-09 23:48:45 +08:00
parent 498f634ac5
commit e031a35330
2 changed files with 18 additions and 18 deletions

View File

@@ -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
skynet.send(agent, "lua", "cmd", cmdline)
until stop or cmdline == "cont"
end)
skynet.call(agent, "lua", "start", address, fd)