From ba8f3b002084610146bbd092f068dba2709341ed Mon Sep 17 00:00:00 2001 From: Benjamin Naecker Date: Wed, 4 May 2022 19:18:11 +0000 Subject: [PATCH] Actually return from the oximeter collector loop when the inbox is closed --- oximeter/collector/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/oximeter/collector/src/lib.rs b/oximeter/collector/src/lib.rs index 29c6c4e3e91..4e2f6ca4fda 100644 --- a/oximeter/collector/src/lib.rs +++ b/oximeter/collector/src/lib.rs @@ -79,6 +79,7 @@ async fn collection_task( match message { None => { debug!(log, "collection task inbox closed, shutting down"); + return; } Some(CollectionMessage::Shutdown) => { debug!(log, "collection task received shutdown request");