Quit
This commit is contained in:
parent
73411e24a0
commit
f11bff6191
1 changed files with 7 additions and 0 deletions
|
@ -347,6 +347,11 @@ return function(server)
|
||||||
server.running = true
|
server.running = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function processQuit(command)
|
||||||
|
server.response(server.responseType.QUIT, server.errorType.OK, command.requestId, nil)
|
||||||
|
os.exit(0)
|
||||||
|
end
|
||||||
|
|
||||||
local function processReset(command)
|
local function processReset(command)
|
||||||
server.running = true
|
server.running = true
|
||||||
emu.reset()
|
emu.reset()
|
||||||
|
@ -866,6 +871,8 @@ return function(server)
|
||||||
|
|
||||||
elseif ct == server.commandType.EXIT then
|
elseif ct == server.commandType.EXIT then
|
||||||
processExit(command)
|
processExit(command)
|
||||||
|
elseif ct == server.commandType.QUIT then
|
||||||
|
processQuit(command)
|
||||||
elseif ct == server.commandType.RESET then
|
elseif ct == server.commandType.RESET then
|
||||||
processReset(command)
|
processReset(command)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue