From d51d4e0c7e85418ef38852c141228ff3218c5163 Mon Sep 17 00:00:00 2001 From: Joe Ranweiler Date: Thu, 22 Dec 2022 10:02:48 -0800 Subject: [PATCH] Ignore benign recv hangup in timer (#2722) --- src/agent/coverage/src/timer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/coverage/src/timer.rs b/src/agent/coverage/src/timer.rs index 24c8b44c51..346a913a06 100644 --- a/src/agent/coverage/src/timer.rs +++ b/src/agent/coverage/src/timer.rs @@ -17,12 +17,12 @@ where let _worker = thread::spawn(move || { let out = function(); - worker_sender.send(Timed::Done(out)).unwrap(); + let _ = worker_sender.send(Timed::Done(out)); }); let _timer = thread::spawn(move || { thread::sleep(timeout); - timer_sender.send(Timed::Timeout).unwrap(); + let _ = timer_sender.send(Timed::Timeout); }); match receiver.recv()? {