dont die in this case
This commit is contained in:
parent
db8d99e180
commit
67e4eb9ff2
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue