diff --git a/src/brulijam/systemlock.lua b/src/brulijam/systemlock.lua index e7386e1..93c5dd0 100644 --- a/src/brulijam/systemlock.lua +++ b/src/brulijam/systemlock.lua @@ -78,10 +78,6 @@ local function shellRun() shell.run("shell") end -local function shellStopCheck() - parallel.waitForAny(shellStopTimer, shellStopKeyEvent) -end - local function shellStopTimer() while true do if timer < 1 then @@ -102,6 +98,10 @@ local function shellStopKeyEvent() end end +local function shellStopCheck() + parallel.waitForAny(shellStopTimer, shellStopKeyEvent) +end + local function main() config = getConfig() local timer = config["keepUnlockedFor"]