fix: correct timeouts according to spec

This commit is contained in:
James Houlahan
2020-04-29 13:45:50 +02:00
committed by Michal Horejsek
parent 68d2591c73
commit 2db1b113e0
3 changed files with 9 additions and 5 deletions

View File

@ -245,6 +245,10 @@ func (cm *ClientManager) switchToReachableServer() (proxy string, err error) {
if cm.host == rootURL {
go func() {
<-time.After(cm.proxyUseDuration)
cm.hostLocker.Lock()
defer cm.hostLocker.Unlock()
cm.host = rootURL
}()
}