From 568fea8903f6d1448b9f9a1c09a73bca7228ab8a Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 21 Oct 2021 09:55:51 +0200 Subject: [PATCH] fix: Fix logical error on stream catch handler --- src/stream/TweetStream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream/TweetStream.ts b/src/stream/TweetStream.ts index 9136872..406de66 100644 --- a/src/stream/TweetStream.ts +++ b/src/stream/TweetStream.ts @@ -251,7 +251,7 @@ export class TweetStream 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;