mirror of https://github.com/hashicorp/consul
minor fix for endpoints shutdown
Signed-off-by: runsisi <runsisi@zte.com.cn>pull/3998/head
parent
4b4c071e8a
commit
b082c8d3ab
|
@ -1226,7 +1226,7 @@ func (a *Agent) ShutdownEndpoints() {
|
|||
a.shutdownLock.Lock()
|
||||
defer a.shutdownLock.Unlock()
|
||||
|
||||
if len(a.dnsServers) == 0 || len(a.httpServers) == 0 {
|
||||
if len(a.dnsServers) == 0 && len(a.httpServers) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue