Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
Fix error when exiting scorp / esc timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
robthomson committed Aug 20, 2024
1 parent 0bea8d2 commit 6e80227
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/rf2ethos/rf2ethos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,10 @@ local mspSaveSettings = {
-- WRAPPER FUNCTION USED TO TRIGGER LOAD SETTINGS
local mspLoadSettings = {
processReply = function(self, buf)


if rf2ethos.Page.minBytes == nil then
rf2ethos.Page.minBytes = 0
end
rf2ethos.utils.log("rf2ethos.Page is processing reply for cmd " .. tostring(self.command) .. " len buf: " .. #buf .. " expected: " .. rf2ethos.Page.minBytes)
if rf2ethos.Page ~= nil then
rf2ethos.Page.values = buf
Expand Down Expand Up @@ -841,6 +844,10 @@ function rf2ethos.wakeupUI()
if rf2ethos.dialogs.progressESC ~= nil then

rf2ethos.audio.playTimeout = true

if rf2ethos.PageTmp ~= nil then
rf2ethos.Page = rf2ethos.PageTmp
end

rf2ethos.dialogs.progressESC:close()
rf2ethos.dialogs.progressDisplayEsc = false
Expand Down

0 comments on commit 6e80227

Please sign in to comment.