service/example: clean up after stop.
This commit is contained in:
@@ -84,6 +84,7 @@ func doWork() {
|
|||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
log.Info("Still running...")
|
log.Info("Still running...")
|
||||||
case <-exit:
|
case <-exit:
|
||||||
|
ticker.Stop()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user