mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 02:17:53 +02:00
Log when monarch is busy
This commit is contained in:
parent
f590c75b9e
commit
5ee6ea5982
@ -399,6 +399,7 @@ end
|
||||
function M.show(id, options, data, cb)
|
||||
assert(id, "You must provide a screen id")
|
||||
if M.is_busy() then
|
||||
log("show() monarch is busy, ignoring request")
|
||||
return false
|
||||
end
|
||||
|
||||
@ -457,6 +458,7 @@ end
|
||||
-- @return true if successfully going back, false if busy performing another operation
|
||||
function M.back(data, cb)
|
||||
if M.is_busy() then
|
||||
log("back() monarch is busy, ignoring request")
|
||||
return false
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user