Skip to content

Commit

Permalink
Suppress warnings when the client has been stopped (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored Jan 20, 2025
1 parent dbb5358 commit 0c94838
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/postcard-rpc/src/host_client/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ where
let cancel_fut = stop.wait_stopped();
let operate_fut = out_worker_inner(wire, rec);
select! {
biased;
_ = cancel_fut => {},
_ = operate_fut => {
// if WE exited, notify everyone else it's stoppin time
Expand Down Expand Up @@ -153,6 +154,7 @@ async fn in_worker<W>(
let cancel_fut = stop.wait_stopped();
let operate_fut = in_worker_inner(wire, host_ctx, subscriptions.clone());
select! {
biased;
_ = cancel_fut => {},
_ = operate_fut => {
// if WE exited, notify everyone else it's stoppin time
Expand Down

0 comments on commit 0c94838

Please sign in to comment.