From 7a12594edb113e07b864ff4fb5255e56e3cb70c1 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Tue, 28 Mar 2017 13:56:48 +0400 Subject: [PATCH] [service] recreate Quit channel on reset don't think that user should do this thing him/herself --- service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service.go b/service.go index e2d31925..f1737133 100644 --- a/service.go +++ b/service.go @@ -136,6 +136,7 @@ func (bs *BaseService) Reset() (bool, error) { // whether or not we've started, we can reset atomic.CompareAndSwapUint32(&bs.started, 1, 0) + bs.Quit = make(chan struct{}) return true, bs.impl.OnReset() } else { if bs.log != nil {