Skip to content

Commit

Permalink
Silently fail when ready oneshot channel got dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Aug 30, 2024
1 parent 5934cc7 commit 5736a8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rhio/src/network/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ impl PandaActor {
if has_joined {
return;
}
loop {
let joined_topic = joined_rx.recv().await.expect("channel is not dropped");
while let Ok(joined_topic) = joined_rx.recv().await {
if joined_topic == topic {
return;
}
Expand Down

0 comments on commit 5736a8b

Please sign in to comment.