Skip to content

Commit

Permalink
Merge pull request #303 from conradoplg/ignore-timeout-streaming
Browse files Browse the repository at this point in the history
Ignore timeout_ms when streaming
  • Loading branch information
ttezel authored May 30, 2018
2 parents e7fe0a8 + fcc9c01 commit 28b231c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Twitter.prototype._buildReqOpts = function (method, path, params, isStreaming, c
encoding: null,
}

if (typeof self.config.timeout_ms !== 'undefined') {
if (typeof self.config.timeout_ms !== 'undefined' && !isStreaming) {
reqOpts.timeout = self.config.timeout_ms;
}

Expand Down

0 comments on commit 28b231c

Please sign in to comment.