minor fix for endpoints shutdown

Signed-off-by: runsisi <runsisi@zte.com.cn>
This commit is contained in:
runsisi 2018-03-29 21:45:46 +08:00
parent b6fd646df6
commit 2f09d10df5

View file

@ -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
}