Skip to content

Commit

Permalink
Levelprovider can fail silently during shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
saivert committed Apr 28, 2024
1 parent 7127c3e commit 9db1342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/levelprovider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl LevelbarProvider {
let stream: Stream = Stream::new(&core, "peakdetect", props)?;

let listener = stream.add_local_listener::<f32>()
.process(clone!(@weak volumebox => @default-panic, move |stream, last_peak| {
.process(clone!(@weak volumebox => @default-return (), move |stream, last_peak| {
match stream.dequeue_buffer() {
None => println!("No buffer received"),
Some(mut buffer) => {
Expand Down

0 comments on commit 9db1342

Please sign in to comment.