From 2f09d10df5c4cac2f5aca29402e02a6aaec264d3 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 8db8d19ad..800302c1a 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 }