diff options
author | isaacs <i@izs.me> | 2012-05-01 15:51:29 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-05-01 15:51:29 -0700 |
commit | fb400b48682ce717f5f904bd7517324f2775cb2d (patch) | |
tree | f89a09a934f25bdf1baa94bf545803dcd9a02acb /lib/tty.js | |
parent | b894521bd2ed81d3abfa3fc8931bd1b376a47b52 (diff) | |
download | android-node-v8-fb400b48682ce717f5f904bd7517324f2775cb2d.tar.gz android-node-v8-fb400b48682ce717f5f904bd7517324f2775cb2d.tar.bz2 android-node-v8-fb400b48682ce717f5f904bd7517324f2775cb2d.zip |
Return after emitting error in tty.js
Diffstat (limited to 'lib/tty.js')
-rw-r--r-- | lib/tty.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tty.js b/lib/tty.js index 2d66abc407..3aedcf4074 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]; |