Commit 3a498e80 by Amos Law Committed by GitHub

Registry: Fix service shutdown mode trigger location (#28025)

parent 531c5793
......@@ -179,10 +179,10 @@ func (s *Server) Run() (err error) {
}
err := service.Run(s.context)
if err != nil {
// Mark that we are in shutdown mode
// So no more services are started
s.shutdownInProgress = true
if err != nil {
if err != context.Canceled {
// Server has crashed.
s.log.Error("Stopped "+descriptor.Name, "reason", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment