[service] recreate Quit channel on reset

don't think that user should do this thing him/herself
This commit is contained in:
Anton Kaliaev 2017-03-28 13:56:48 +04:00
parent 75a539ae3d
commit 7a12594edb
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 0 deletions

View File

@ -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 {