Merge pull request #3998 from zte-opensource/wip-fix-shutdown
minor fix for endpoints shutdown
This commit is contained in:
commit
d4e6b0307e
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue