From 7afce17f70555e1dd07e4a3a54af789cc408bed9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 27 Aug 2021 11:20:57 +0200 Subject: netwatch-notify: use $ScriptLock --- netwatch-notify | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netwatch-notify b/netwatch-notify index 966d415..7fdf5b5 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -16,6 +16,7 @@ :global IfThenElse; :global LogPrintExit2; :global ParseKeyValueStore; +:global ScriptLock; :global SendNotification2; :global SymbolForNotification; @@ -47,6 +48,8 @@ :set NetwatchNotify [ :toarray "" ]; } +$ScriptLock $0; + :foreach Host in=[ / tool netwatch find where comment~"^notify," disabled=no ] do={ :local HostVal [ / tool netwatch get $Host ]; :local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ]; -- cgit v1.2.3-54-g00ecf