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