mirror of https://github.com/nodejs/node.git
Return after emitting error in tty.js
parent
b894521bd2
commit
fb400b4868
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue