mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 15:46:44 +00:00
fix: correct timeouts according to spec
This commit is contained in:
committed by
Michal Horejsek
parent
68d2591c73
commit
2db1b113e0
@ -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
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user