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