diff --git a/commands.lua b/commands.lua index 89772d7..058dd0c 100644 --- a/commands.lua +++ b/commands.lua @@ -91,7 +91,6 @@ return function(server) end me.open = false print("Monitor closed") - responseRegisterInfo(server.EVENT_ID) responseResumed(server.EVENT_ID) end diff --git a/server.lua b/server.lua index ffb2a63..555d3fa 100644 --- a/server.lua +++ b/server.lua @@ -231,8 +231,8 @@ local function prepareCommand() if me.running then me.running = false - commands.monitorOpened() end + commands.monitorOpened() me.conn:settimeout(-1) data, status = me.conn:receive(1 + 4)