This commit is contained in:
Boog900 2024-05-07 01:13:55 +01:00
parent 859d67d8b6
commit 1570844b0b
No known key found for this signature in database
GPG key ID: 42AB1287CB0041C2

View file

@ -78,7 +78,7 @@ impl<N: NetworkZone> ClientPool<N> {
assert!(res.is_none()); assert!(res.is_none());
// We have to check this again otherwise we could have a race condition where a // We have to check this again otherwise we could have a race condition where a
// peer is disconnected after the first check, the disconnect monitor trys to remove it, // peer is disconnected after the first check, the disconnect monitor tries to remove it,
// and then it is added to the pool. // and then it is added to the pool.
if handle.is_closed() { if handle.is_closed() {
self.remove_client(&id); self.remove_client(&id);