From 0be48138ed0c0a9adcec631034c861df0cc19446 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 May 2025 18:01:28 +0200 Subject: [PATCH] check-perpetual-license: fail if global functions do not become ready Co-authored-by: Ilya Kulakov --- check-perpetual-license.rsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check-perpetual-license.rsc b/check-perpetual-license.rsc index 9a3a3c74..202fd02f 100644 --- a/check-perpetual-license.rsc +++ b/check-perpetual-license.rsc @@ -9,7 +9,8 @@ # https://rsc.eworm.de/doc/check-perpetual-license.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 {