Skip to content

Commit

Permalink
Add line break before if statement
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Nagurski <[email protected]>
  • Loading branch information
erdirowlands and knagurski authored Apr 15, 2024
1 parent 089e645 commit 3f1700a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ export class Streamer {
this.eventBus.emit(Event.DISCONNECTED)
this.disconnectEventEmitted = true
}

if (this.reconnectAttempts >= 5 && this.reconnectAttempts % 5 === 0) {
this.logErrorMessage(
`Reconnection failed after ${this.reconnectAttempts} attempts; attempting further reconnections.`
)
}

setTimeout(() => this.start(), reconnectDelayMs)
}

Expand Down

0 comments on commit 3f1700a

Please sign in to comment.