From 658b9626b42869839e41ff48c1a4e726627b7645 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Thu, 5 Feb 2026 13:21:28 +0100 Subject: [PATCH] no message --- Bat_EV_SDL _V2/module.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Bat_EV_SDL _V2/module.php b/Bat_EV_SDL _V2/module.php index e62109f..cfe16d3 100644 --- a/Bat_EV_SDL _V2/module.php +++ b/Bat_EV_SDL _V2/module.php @@ -68,6 +68,19 @@ class Bat_EV_SDL_V2 extends IPSModule public function Update() { + + + // Reentranzschutz – verhindert parallele Update()-Läufe + $semKey = 'BatEVSDL_Update_' . $this->InstanceID; + + if (!IPS_SemaphoreEnter($semKey, 5000)) { + // Überspringen, wenn bereits ein Lauf aktiv ist + $this->SendDebug("Update", "SKIP (Semaphore locked)", 0); + return; + } + + + try { if (!GetValue($this->GetIDForIdent("State"))) {