mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-28 00:03:32 +00:00
setMaxRetries again after a succesful reconnection.
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
83ce62fce2
commit
8cf0fcb43e
@ -217,6 +217,7 @@ func (mms *MqttMonitor) MonitorActiveParticipants() {
|
|||||||
log.Println("[app] [Monitor] retry establishing a connection")
|
log.Println("[app] [Monitor] retry establishing a connection")
|
||||||
break // Exit inner loop on disconnect
|
break // Exit inner loop on disconnect
|
||||||
}
|
}
|
||||||
|
mms.SetMaxRetries()
|
||||||
time.Sleep(60 * time.Second) // Adjust sleep time based on your needs
|
time.Sleep(60 * time.Second) // Adjust sleep time based on your needs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user