Skip to content

Commit

Permalink
Merge pull request #577 from Jocke4f/feat_reconnects_fix_reset_counter
Browse files Browse the repository at this point in the history
Reset reconnectFailureCounter after final connection attempt
  • Loading branch information
josephdadams committed Jul 18, 2023
2 parents dcfabd6 + 3838ef0 commit f805639
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sources/_Source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export class TallyInput extends EventEmitter {
}
} else {
logger(`Source: ${this.source.name} No more reconnects.`, 'info-quiet');

// Reset failure counter for future reconnect attempts.
this.reconnectFailureCounter = 0;
}
}
});
Expand Down

0 comments on commit f805639

Please sign in to comment.