minor fix for endpoints shutdown

Signed-off-by: runsisi <runsisi@zte.com.cn>
pull/3998/head
runsisi 2018-03-29 21:45:46 +08:00
parent 4b4c071e8a
commit b082c8d3ab
1 changed files with 1 additions and 1 deletions

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
}