mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-12-23 07:27:29 +00:00
Close pty
This commit is contained in:
parent
23ca3c8d13
commit
beda1d7ab7
@ -48,6 +48,7 @@ func (context *clientContext) goHandleClient() {
|
||||
|
||||
go func() {
|
||||
<-exit
|
||||
context.pty.Close()
|
||||
context.command.Wait()
|
||||
context.connection.Close()
|
||||
log.Printf("Connection closed: %s", context.request.RemoteAddr)
|
||||
|
Loading…
Reference in New Issue
Block a user