mirror of https://github.com/status-im/consul.git
Avoid panics during shutdown routine
This commit is contained in:
parent
5658faec6b
commit
b5e858d3e1
|
@ -958,9 +958,13 @@ func (s *Server) Shutdown() error {
|
|||
}
|
||||
|
||||
// Close the connection pool
|
||||
s.connPool.Shutdown()
|
||||
if s.connPool != nil {
|
||||
s.connPool.Shutdown()
|
||||
}
|
||||
|
||||
s.acls.Close()
|
||||
if s.acls != nil {
|
||||
s.acls.Close()
|
||||
}
|
||||
|
||||
if s.config.NotifyShutdown != nil {
|
||||
s.config.NotifyShutdown()
|
||||
|
|
Loading…
Reference in New Issue