From 7a7c1f6f5008898527216488deef571c17ff6b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=A4rtens?= Date: Fri, 27 Nov 2020 10:47:01 +0100 Subject: [PATCH] I would except this to be implcitly done by the `drop` though it doesn't hurt here, as this channel is dropped anyway a line later. But i have the feeling that maybe something with the channel is wrong which leads to this behavior (or maybe did i made a copy somewhere, though i dobt this). Again, not sure if this is a fix, but i think it doesn't hurt --- network/src/participant.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/network/src/participant.rs b/network/src/participant.rs index 199e85521c..8e0d0a1904 100644 --- a/network/src/participant.rs +++ b/network/src/participant.rs @@ -290,6 +290,7 @@ impl BParticipant { if let Err(e) = ci.b2r_read_shutdown.send(()) { trace!(?cid, ?e, "seems like was already shut down"); } + ci.b2w_frame_s.close_channel(); } //TODO FIXME tags: takeover channel multiple info!( @@ -652,6 +653,7 @@ impl BParticipant { itself, ignoring" ); }; + ci.b2w_frame_s.close_channel(); } //Wait for other bparticipants mgr to close via AtomicUsize