be sure to exit the go routine if we terminate normally
parent
7a3e1f6b27
commit
34bfb6b330
|
@ -406,6 +406,8 @@ func (s *Server) executeShutdown(c <-chan struct{}) {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
case <-s.closing:
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue