service/example: clean up after stop.

This commit is contained in:
Daniel Theophanes
2014-05-28 11:32:19 -07:00
parent 2c5b2362ec
commit 5174c72421
+1
View File
@@ -84,6 +84,7 @@ func doWork() {
case <-ticker.C:
log.Info("Still running...")
case <-exit:
ticker.Stop()
return
}
}