Permalink
Browse files

Merge remote-tracking branch 'origin/master' to integrate stream end …

…correction
  • Loading branch information...
2 parents d37146d + f41923e commit 92dd940208eae80d8717fda907b018109af874bd @mef mef committed Jan 17, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/tuiter.js
View
@@ -108,7 +108,8 @@ var APIRequest = function(endpoint, params, callback) {
callback(stream);
stream.on('end', function(){
- if(stream.res) stream.res.removeAllListeners('end');
+ if(stream.res) stream.res.removeAllListeners('end');
+ stream.end();
req = stream = null;
});

0 comments on commit 92dd940

Please sign in to comment.