Merge pull request #3998 from zte-opensource/wip-fix-shutdown

minor fix for endpoints shutdown
This commit is contained in:
Preetha 2018-04-03 12:22:54 -05:00 committed by GitHub
commit d4e6b0307e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}