fix colliding net connections

This commit is contained in:
John Smith 2022-11-05 19:41:18 -04:00
parent cd892d077a
commit 0e7f3e1c3c

View File

@ -232,7 +232,8 @@ impl ConnectionManager {
}); });
// Wait for the killed connections to end their recv loops // Wait for the killed connections to end their recv loops
let did_kill = !killed.is_empty(); let did_kill = !killed.is_empty();
for k in killed { for mut k in killed {
k.close();
k.await; k.await;
} }
did_kill did_kill