From 89008354087f90f58cb2508489b3932848742a2d Mon Sep 17 00:00:00 2001 From: empathicqubit Date: Fri, 5 Nov 2021 03:57:11 +0100 Subject: [PATCH] Fix monitor open sequence --- commands.lua | 1 - server.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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)