aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--handshake.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/handshake.go b/handshake.go
index d1ed57d..d26d62a 100644
--- a/handshake.go
+++ b/handshake.go
@@ -44,6 +44,7 @@ func handshake(rhost string) error {
}
return nil
})
+ go func() { group.Wait() }() // cancel the context.
select {
case err := <-errs: