diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-04-11 18:13:36 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-04-11 18:13:36 -0400 |
| commit | 82adb2ee0fc8322e420a18002e214fedafd4e33a (patch) | |
| tree | a2f4224f158fcd1c506123e7ec336649adb55eda /handshake.go | |
| parent | c2ccb63578460b0bf22fba3d2287365dec22014a (diff) | |
| download | hose-82adb2ee0fc8322e420a18002e214fedafd4e33a.zip | |
cancel context when handshake routines finish
Diffstat (limited to 'handshake.go')
| -rw-r--r-- | handshake.go | 1 |
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: |