about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-04-14 11:38:58 +0200
committerLeah Neukirchen <leah@vuxu.org>2020-04-14 11:38:58 +0200
commit1ee0268759dfab17f3a2c4b21a89510bf7274358 (patch)
tree52cd44bd25f3083fd156310691a59b8b52b89b9e
parentdb20f44b0d100ad042c2f86b8baf394665d8ec63 (diff)
downloadhtping-1ee0268759dfab17f3a2c4b21a89510bf7274358.tar.gz
htping-1ee0268759dfab17f3a2c4b21a89510bf7274358.tar.xz
htping-1ee0268759dfab17f3a2c4b21a89510bf7274358.zip
actually use waitCh v0.1
-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 {