summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--htping.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/htping.go b/htping.go
index 5010c39..eca94b2 100644
--- a/htping.go
+++ b/htping.go
@@ -419,6 +419,7 @@ func main() {
 	waitCh := make(chan struct{})
 	go func() {
 		wg.Wait()
+		close(waitCh)
 	}()
 
 	select {