From b082c8d3ab9e1c42b21f58f63708344724906661 Mon Sep 17 00:00:00 2001 From: runsisi Date: Thu, 29 Mar 2018 21:45:46 +0800 Subject: [PATCH] minor fix for endpoints shutdown Signed-off-by: runsisi --- agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/agent.go b/agent/agent.go index 8db8d19ade..800302c1ae 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -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 }