From f8fce1fa788d9e79233f019abc94dd6945c58046 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 22 Oct 2022 00:34:36 +0200 Subject: [PATCH] fix send tx for kill --- backend/src/worker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/worker.rs b/backend/src/worker.rs index 63f636096b..8c6e6e2d93 100644 --- a/backend/src/worker.rs +++ b/backend/src/worker.rs @@ -1723,7 +1723,7 @@ async fn handle_child( _ = cancel_check => KillReason::Cancelled, _ = sleep(timeout) => KillReason::Timeout, }; - let _ = tx.send(()); + tx.send(()).await.expect("rx should never be dropped"); drop(tx); let set_reason = async {