From c7684f738ebea172a9a7b712dd7ee6daf508e62b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 May 2025 18:01:29 +0200 Subject: [PATCH] sms-action: fail if global functions do not become ready Co-authored-by: Ilya Kulakov --- sms-action.rsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sms-action.rsc b/sms-action.rsc index 3c8307a8..34bd93c3 100644 --- a/sms-action.rsc +++ b/sms-action.rsc @@ -9,7 +9,8 @@ # https://rsc.eworm.de/doc/sms-action.md :global GlobalFunctionsReady; -:while ($GlobalFunctionsReady != true) do={ :delay 500ms; } +:onerror e { :retry { :if ($GlobalFunctionsReady != true) \ + do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; }; :local ExitOK false; :do {