mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Return after emitting error in tty.js
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user