Return after emitting error in tty.js

pull/24503/head
isaacs 2012-05-01 15:51:29 -07:00
parent b894521bd2
commit fb400b4868
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ WriteStream.prototype._refreshSize = function() {
var winSize = this._handle.getWindowSize();
if (!winSize) {
this.emit('error', errnoException(errno, 'getWindowSize'));
return;
}
var newCols = winSize[0];
var newRows = winSize[1];