mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-11 22:35:40 +01:00
RUnlock for early exit (#2127)
This commit is contained in:
parent
6916c047e1
commit
0a0b69d93d
@ -338,6 +338,7 @@ func findFarthestRoute(proxy *Proxy, name string, relayStamps []stamps.ServerSta
|
||||
}
|
||||
}
|
||||
if serverIdx < 0 {
|
||||
proxy.serversInfo.RUnlock()
|
||||
return nil
|
||||
}
|
||||
server := proxy.serversInfo.registeredServers[serverIdx]
|
||||
|
Loading…
Reference in New Issue
Block a user