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 0701aba commit 4b6c61bCopy full SHA for 4b6c61b
c2/httpserveshell/httpserveshell.go
@@ -112,9 +112,13 @@ func (serveShell *Server) Shutdown() bool {
112
// Each of the shell sessions and httpservefile sessions should be handled by the channel Shutdown
113
// atomic.
114
if serveShell.SSLShell {
115
- sslshell.GetInstance().Channel().Shutdown.Store(true)
+ if !sslshell.GetInstance().Channel().HasSessions() {
116
+ sslshell.GetInstance().Channel().Shutdown.Store(true)
117
+ }
118
} else {
- simpleshell.GetServerInstance().Channel().Shutdown.Store(true)
119
+ if !simpleshell.GetServerInstance().Channel().HasSessions() {
120
+ simpleshell.GetServerInstance().Channel().Shutdown.Store(true)
121
122
}
123
httpservefile.GetInstance().Channel().Shutdown.Store(true)
124
0 commit comments