exit on resizeTerminal error

This commit is contained in:
zlji 2017-01-10 11:58:01 +08:00 committed by Iwasaki Yudai
parent 496ef86339
commit 54403dd678

View File

@ -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