From 5ee6ea59822698701c747a69c1330f86ecc45099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Thu, 21 Jun 2018 11:30:17 +0200 Subject: [PATCH] Log when monarch is busy --- monarch/monarch.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monarch/monarch.lua b/monarch/monarch.lua index 4fca8ca..30fffe1 100644 --- a/monarch/monarch.lua +++ b/monarch/monarch.lua @@ -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