mirror of https://github.com/hashicorp/consul
Merge pull request #3998 from zte-opensource/wip-fix-shutdown
minor fix for endpoints shutdownpull/4015/head
commit
2c931c92d4
|
@ -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