Commit 54403dd6 by zlji Committed by Iwasaki Yudai

exit on resizeTerminal error

1 parent 496ef863
Showing with 5 additions and 1 deletions
...@@ -165,7 +165,11 @@ func (context *clientContext) processReceive() { ...@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!