mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-12-23 07:27:29 +00:00
exit on resizeTerminal error
This commit is contained in:
parent
496ef86339
commit
54403dd678
@ -165,7 +165,11 @@ func (context *clientContext) processReceive() {
|
||||
columns = uint16(args.Columns)
|
||||
}
|
||||
|
||||
context.ResizeTerminal(columns, rows)
|
||||
err = context.ResizeTerminal(columns, rows)
|
||||
if err != nil {
|
||||
log.Printf("failed to resize terminal %v", err)
|
||||
return
|
||||
}
|
||||
default:
|
||||
log.Print("Unknown message type")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user