Skip to content

Commit

Permalink
fix: Fix logical error on stream catch handler
Browse files Browse the repository at this point in the history
  • Loading branch information
alkihis committed Oct 21, 2021
1 parent 73e344f commit 568fea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream/TweetStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export class TweetStream<T = any> extends EventEmitter {

// Only make a reconnection attempt if autoReconnect is true!
// Otherwise, let error be propagated
if (!this.autoReconnect) {
if (this.autoReconnect) {
this.makeAutoReconnectRetry(0);
} else {
throw e;
Expand Down

0 comments on commit 568fea8

Please sign in to comment.