diff --git a/src/subsonic.rs b/src/subsonic.rs index 5126302..ac2056c 100644 --- a/src/subsonic.rs +++ b/src/subsonic.rs @@ -176,10 +176,13 @@ impl Client { } } - sender - .send(perform(future.await).await) - .await - .expect("could not send cover art bytes back to the main loop"); + if let Err(async_channel::SendError(_)) = sender.send(perform(future.await).await).await + { + event!( + Level::INFO, + "could not send cover art bytes to main loop (task cancelled?)" + ); + } }); receiver