diff options
-rw-r--r-- | mod/notification-telegram | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/notification-telegram b/mod/notification-telegram index 7b41c5e..493aa00 100644 --- a/mod/notification-telegram +++ b/mod/notification-telegram @@ -12,8 +12,14 @@ :set FlushTelegramQueue do={ :global TelegramQueue; + :global IsFullyConnected; :global LogPrintExit2; + :if ([ $IsFullyConnected ] = false) do={ + $LogPrintExit2 debug $0 ("System is not fully connected, not flushing.") false; + :return false; + } + :local AllDone true; :local QueueLen [ :len $TelegramQueue ]; |