setMaxRetries again after a succesful reconnection.

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-05-15 11:38:24 +02:00
parent 83ce62fce2
commit 8cf0fcb43e
No known key found for this signature in database

View File

@ -217,6 +217,7 @@ func (mms *MqttMonitor) MonitorActiveParticipants() {
log.Println("[app] [Monitor] retry establishing a connection")
break // Exit inner loop on disconnect
}
mms.SetMaxRetries()
time.Sleep(60 * time.Second) // Adjust sleep time based on your needs
}
}