mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-22 12:24:25 +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)
|
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:
|
default:
|
||||||
log.Print("Unknown message type")
|
log.Print("Unknown message type")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user