mirror of https://github.com/status-im/consul.git
Merge pull request #3998 from zte-opensource/wip-fix-shutdown
minor fix for endpoints shutdown
This commit is contained in:
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