From fb400b48682ce717f5f904bd7517324f2775cb2d Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 1 May 2012 15:51:29 -0700 Subject: [PATCH] Return after emitting error in tty.js --- lib/tty.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tty.js b/lib/tty.js index 2d66abc407f..3aedcf40743 100644 --- a/lib/tty.js +++ b/lib/tty.js @@ -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];