We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6742515 commit 2431511Copy full SHA for 2431511
ssh_session.go
@@ -81,10 +81,9 @@ func createSSHSessionHandler(shell string) ssh.Handler {
81
log.Println("No PTY requested, no command supplied")
82
83
// Keep this open until the session exits, could e.g. be port forwarding
84
- select {
85
- case <-s.Context().Done():
86
- log.Printf("Session terminated: %s", s.Context().Err())
87
- }
+ <-s.Context().Done()
+ log.Printf("Session terminated: %s", s.Context().Err())
+ return
88
}
89
90
0 commit comments