From 0e7f3e1c3c6d954d9e76304fd73ade337deea999 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sat, 5 Nov 2022 19:41:18 -0400 Subject: [PATCH] fix colliding net connections --- veilid-core/src/network_manager/connection_manager.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/veilid-core/src/network_manager/connection_manager.rs b/veilid-core/src/network_manager/connection_manager.rs index d6350612..e83f069d 100644 --- a/veilid-core/src/network_manager/connection_manager.rs +++ b/veilid-core/src/network_manager/connection_manager.rs @@ -232,7 +232,8 @@ impl ConnectionManager { }); // Wait for the killed connections to end their recv loops let did_kill = !killed.is_empty(); - for k in killed { + for mut k in killed { + k.close(); k.await; } did_kill