mirror of https://github.com/dswd/vpncloud.git
Do not reconnect to timed out pending conections
This commit is contained in:
parent
bd839534e0
commit
45ab0a4608
|
@ -339,9 +339,10 @@ impl<D: Device, P: Protocol, S: Socket, TS: TimeSource> GenericCloud<D, P, S, TS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for addr in del {
|
for addr in del {
|
||||||
self.peers.remove(&addr);
|
|
||||||
self.pending_inits.remove(&addr);
|
self.pending_inits.remove(&addr);
|
||||||
self.connect_sock(addr)?;
|
if self.peers.remove(&addr).is_some() {
|
||||||
|
self.connect_sock(addr)?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue