minor fix for endpoints shutdown
Signed-off-by: runsisi <runsisi@zte.com.cn>
This commit is contained in:
parent
b6fd646df6
commit
2f09d10df5
|
@ -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 a new issue