Remove blocking_send that crashes
This commit is contained in:
parent
ab80ade4f0
commit
fed0542313
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ impl Sender {
|
||||||
impl Drop for Sender {
|
impl Drop for Sender {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
if let Some(inner) = self.inner.take() {
|
if let Some(inner) = self.inner.take() {
|
||||||
let _ = inner.blocking_send(Err(255));
|
tokio::spawn(async move {
|
||||||
|
let _ = inner.send(Err(255)).await;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue