mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 14:35: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 tickerRestablishConnection.Stop()
|
||||||
defer tickerCleanup.Stop()
|
defer tickerCleanup.Stop()
|
||||||
|
|
||||||
for {
|
for !mms.IsTerminated() {
|
||||||
select {
|
select {
|
||||||
case <-tickerRestablishConnection.C:
|
case <-tickerRestablishConnection.C:
|
||||||
go mms.MonitorActiveParticipants()
|
go mms.MonitorActiveParticipants()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user