dont die in this case

This commit is contained in:
Erica Z 2024-11-06 12:48:52 +01:00
parent db8d99e180
commit 67e4eb9ff2

View file

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