Skip to content

Commit

Permalink
src: lib: stream: Invalidate only after logging
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Jul 18, 2024
1 parent 493d56f commit a3cbb91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/stream/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ pub fn update_devices(
candidates.remove(idx);
}
Err(reason) => {
// Invalidate the device
source.device_path = "".into();
if verbose {
warn!("Device {source:?} was invalidated. Reason: {reason:?}");
};
// Invalidate the device
source.device_path = "".into();
}
_ => (),
}
Expand Down

0 comments on commit a3cbb91

Please sign in to comment.