mirror of
https://github.com/britzl/monarch.git
synced 2025-09-27 10:02:21 +02:00
Check if screen was loaded before trying to unload
This commit is contained in:
@@ -354,8 +354,10 @@ local function unload(screen, force)
|
||||
if screen.proxy then
|
||||
log("unload() proxy", screen.id)
|
||||
if screen.auto_preload and not force then
|
||||
msg.post(screen.proxy, DISABLE)
|
||||
screen.loaded = false
|
||||
if screen.loaded then
|
||||
msg.post(screen.proxy, DISABLE)
|
||||
screen.loaded = false
|
||||
end
|
||||
screen.preloaded = true
|
||||
else
|
||||
screen.wait_for = PROXY_UNLOADED
|
||||
|
Reference in New Issue
Block a user