From 2b17a34ff797031824b86902d92c77affeb5e395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Sun, 10 Mar 2024 13:55:29 +0100 Subject: [PATCH] Fix hang on close --- sender_worker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sender_worker.go b/sender_worker.go index 589a457..c898e95 100644 --- a/sender_worker.go +++ b/sender_worker.go @@ -115,6 +115,7 @@ func NotifyViaHTTP(events <-chan GenericMessage, wg *sync.WaitGroup, logger *log } } } + close(returnEvents) }() return returnEvents