From f145a27a3da37489ae80b1e4386ceab23c271f40 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Thu, 2 Dec 2021 16:08:27 +0100 Subject: [PATCH] Do not close chan, it's not so important... --- generator/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/main.go b/generator/main.go index 86bef4e..7d0085a 100644 --- a/generator/main.go +++ b/generator/main.go @@ -404,7 +404,7 @@ func detected(name string, port int) { for _, c := range cx { if v, ok := servicesMap[name]; ok { c <- v - close(c) + //close(c) } } }() @@ -426,7 +426,7 @@ func waitPort(name string) chan int { go func() { if v, ok := servicesMap[name]; ok { c <- v - close(c) + //close(c) } }() locker.Unlock()