mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 10:27:49 +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)
|
function M.show(id, options, data, cb)
|
||||||
assert(id, "You must provide a screen id")
|
assert(id, "You must provide a screen id")
|
||||||
if M.is_busy() then
|
if M.is_busy() then
|
||||||
|
log("show() monarch is busy, ignoring request")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -457,6 +458,7 @@ end
|
|||||||
-- @return true if successfully going back, false if busy performing another operation
|
-- @return true if successfully going back, false if busy performing another operation
|
||||||
function M.back(data, cb)
|
function M.back(data, cb)
|
||||||
if M.is_busy() then
|
if M.is_busy() then
|
||||||
|
log("back() monarch is busy, ignoring request")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user