mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 06:25:47 +00:00
added termination clause for the scheduler
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
3cd74ce683
commit
6a3220b5fe
@ -84,7 +84,7 @@ func (mms *MqttMonitor) runPeriodicTasks() {
|
||||
defer tickerRestablishConnection.Stop()
|
||||
defer tickerCleanup.Stop()
|
||||
|
||||
for {
|
||||
for !mms.IsTerminated() {
|
||||
select {
|
||||
case <-tickerRestablishConnection.C:
|
||||
go mms.MonitorActiveParticipants()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user