mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-05 14:17:36 +03:00
RUnlock for early exit (#2127)
This commit is contained in:
parent
6916c047e1
commit
0a0b69d93d
1 changed files with 1 additions and 0 deletions
|
@ -338,6 +338,7 @@ func findFarthestRoute(proxy *Proxy, name string, relayStamps []stamps.ServerSta
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if serverIdx < 0 {
|
if serverIdx < 0 {
|
||||||
|
proxy.serversInfo.RUnlock()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
server := proxy.serversInfo.registeredServers[serverIdx]
|
server := proxy.serversInfo.registeredServers[serverIdx]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue