Skip to content

Commit

Permalink
add biased to daemon select
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Aug 21, 2023
1 parent 8a34c52 commit b18a252
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iot_packet_verifier/src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl Daemon {
tracing::info!("starting daemon");
loop {
tokio::select! {
biased;
_ = shutdown.clone() => break,
file = self.report_files.recv() => {
if let Some(file) = file {
Expand Down

0 comments on commit b18a252

Please sign in to comment.