From 31c5c89a5ababc929d9276624fc49e60a6b4a958 Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Tue, 19 Apr 2022 14:01:23 +0200 Subject: [PATCH] Fix: Close done channel --- receivers/redfishReceiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receivers/redfishReceiver.go b/receivers/redfishReceiver.go index 606bdcb..358093d 100644 --- a/receivers/redfishReceiver.go +++ b/receivers/redfishReceiver.go @@ -186,7 +186,7 @@ func (r *RedfishReceiver) Close() { cclog.ComponentDebug(r.name, "CLOSE") // Send the signal and wait - r.done <- true + close(r.done) r.wg.Wait() cclog.ComponentDebug(r.name, "DONE")