From 3cd74ce68351851cbdb61d104cec703a5ae8b1f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Wed, 15 May 2024 16:28:39 +0200 Subject: [PATCH] unlock mutex before return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Eckel --- monitor/mqtt_monitor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor/mqtt_monitor.go b/monitor/mqtt_monitor.go index d4c4bb7..4648be3 100644 --- a/monitor/mqtt_monitor.go +++ b/monitor/mqtt_monitor.go @@ -187,6 +187,7 @@ func (mms *MqttMonitor) MonitorActiveParticipants() { clientMutex.Lock() if localMqttClient != nil { log.Println("[app] [Monitor] client is still working") + clientMutex.Unlock() return } localMqttClient = mms.lazyLoadMonitorMQTTClient()