From 69a9c0f5c078ac8e7171074372b265ce07ef9b23 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 May 2025 18:01:29 +0200 Subject: [PATCH] update-tunnelbroker: fail if global functions do not become ready Co-authored-by: Ilya Kulakov --- update-tunnelbroker.rsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update-tunnelbroker.rsc b/update-tunnelbroker.rsc index 45afa6f8..049bdcef 100644 --- a/update-tunnelbroker.rsc +++ b/update-tunnelbroker.rsc @@ -12,7 +12,8 @@ # https://rsc.eworm.de/doc/update-tunnelbroker.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 {