aboutsummaryrefslogtreecommitdiffstats
path: root/handshake.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-04-11 18:13:36 -0400
committerSam Anthony <sam@samanthony.xyz>2025-04-11 18:13:36 -0400
commit82adb2ee0fc8322e420a18002e214fedafd4e33a (patch)
treea2f4224f158fcd1c506123e7ec336649adb55eda /handshake.go
parentc2ccb63578460b0bf22fba3d2287365dec22014a (diff)
downloadhose-82adb2ee0fc8322e420a18002e214fedafd4e33a.zip
cancel context when handshake routines finish
Diffstat (limited to 'handshake.go')
-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: