Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #172 - Emit reqest end on stream destroy #244

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions lib/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ Twitter.prototype.stream = function(method, params, callback) {
request.abort(); // node v0.4.0
}
else {
request.socket.end();
request.socket.destroy();
}
};
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
},
"dependencies": {
"deep-extend": "^0.5.0",
"request": "^2.72.0"
"request": "^2.81.0"
},
"devDependencies": {
"eslint": "^3.12.0",
"mocha": "^3.2.0",
"mocha": "^3.4.0",
"eslint": "^4.4.0",
"mocha": "^3.4.0",
"nock": "^9.0.2"
},
"main": "./lib/twitter"
Expand Down