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 {