diff --git a/netwatch-dns.rsc b/netwatch-dns.rsc index 467d6362..aa36ff3a 100644 --- a/netwatch-dns.rsc +++ b/netwatch-dns.rsc @@ -10,7 +10,8 @@ # https://rsc.eworm.de/doc/netwatch-dns.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 {