diff --git a/frontend/ui/inputevent.lua b/frontend/ui/inputevent.lua index f9984eb55..898ef64bf 100644 --- a/frontend/ui/inputevent.lua +++ b/frontend/ui/inputevent.lua @@ -247,6 +247,8 @@ function Input:waitEvent(timeout_us, timeout_s) -- don't report an error on timeout ev = nil break + elseif ev == "application forced to quit" then + os.exit(0) end DEBUG("got error waiting for events:", ev) if ev ~= "Waiting for input failed: 4\n" then