Fix: Close done channel

This commit is contained in:
Holger Obermaier 2022-04-19 14:01:23 +02:00
parent bf9c7e1830
commit 31c5c89a5a

View File

@ -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")