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