Lock started flag when changing it.

This commit is contained in:
Milos Gajdos 2019-08-23 15:07:08 +01:00 committed by Vasiliy Tolstov
parent 65733b8268
commit a037094a31

View File

@ -815,7 +815,9 @@ func (g *grpcServer) Stop() error {
var err error
select {
case err = <-ch:
g.Lock()
g.started = false
g.Unlock()
}
return err