Do not close chan, it's not so important...

This commit is contained in:
2021-12-02 16:08:27 +01:00
parent a292170a63
commit f145a27a3d

View File

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