Close pty
This commit is contained in:
@@ -48,6 +48,7 @@ func (context *clientContext) goHandleClient() {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
<-exit
|
<-exit
|
||||||
|
context.pty.Close()
|
||||||
context.command.Wait()
|
context.command.Wait()
|
||||||
context.connection.Close()
|
context.connection.Close()
|
||||||
log.Printf("Connection closed: %s", context.request.RemoteAddr)
|
log.Printf("Connection closed: %s", context.request.RemoteAddr)
|
||||||
|
|||||||
Reference in New Issue
Block a user