From 9db13425ffafd6e39a9798ba4b3bb04ffe7ac221 Mon Sep 17 00:00:00 2001 From: Nicolai Syvertsen Date: Sun, 28 Apr 2024 13:06:55 +0200 Subject: [PATCH] Levelprovider can fail silently during shutdown --- src/ui/levelprovider.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/levelprovider.rs b/src/ui/levelprovider.rs index 9398a61..8098c60 100644 --- a/src/ui/levelprovider.rs +++ b/src/ui/levelprovider.rs @@ -50,7 +50,7 @@ impl LevelbarProvider { let stream: Stream = Stream::new(&core, "peakdetect", props)?; let listener = stream.add_local_listener::() - .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) => {