Skip to content

Commit

Permalink
Merge pull request #899 from ably/fix-retry-timer-bug
Browse files Browse the repository at this point in the history
fix retry timer setting wrong variable to null (Fixes #898)
  • Loading branch information
Peter Maguire authored Feb 24, 2022
2 parents e4b847b + ec37a31 commit 24ef7de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/lib/client/realtimechannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ class RealtimeChannel extends Channel {
modes: string[] | undefined;
stateTimer?: number | NodeJS.Timeout | null;
retryTimer?: number | NodeJS.Timeout | null;
suspendTimer?: number | NodeJS.Timeout | null;


constructor(realtime: Realtime, name: string, options: API.Types.ChannelOptions) {
super(realtime, name, options);
Expand Down Expand Up @@ -738,7 +736,7 @@ class RealtimeChannel extends Channel {
cancelRetryTimer(): void {
if(this.retryTimer) {
clearTimeout(this.retryTimer as NodeJS.Timeout);
this.suspendTimer = null;
this.retryTimer = null;
}
}

Expand Down

0 comments on commit 24ef7de

Please sign in to comment.