diff options
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/global-functions b/global-functions index fadd2c6..0530564 100644 --- a/global-functions +++ b/global-functions @@ -291,6 +291,11 @@ :local AllDone true; :local QueueLen [ :len $TelegramQueue ]; + + :if ([ :len [ / system scheduler find where name="FlushTelegramQueue" ] ] > 0 && $QueueLen = 0) do={ + $LogPrintExit warning ("Flushing Telegram messages from scheduler, but queue is empty.") false; + } + :foreach Id,Message in=$TelegramQueue do={ :if ([ :typeof $Message ] = "array" ) do={ :do { |