Skip to content

Commit

Permalink
Merge pull request #388 from Hampo/patch-1
Browse files Browse the repository at this point in the history
Update FollowerService with try catch to prevent app crashes
  • Loading branch information
Syzuna authored Mar 22, 2024
2 parents 45e39db + 917ee17 commit 67bc433
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TwitchLib.Api/Services/FollowerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ public async Task UpdateLatestFollowersAsync(bool callEvents = true)

protected override async Task OnServiceTimerTick()
{
await base.OnServiceTimerTick();
await UpdateLatestFollowersAsync();
try {
await base.OnServiceTimerTick();
await UpdateLatestFollowersAsync();
} catch {}
}

private async Task<List<ChannelFollower>> GetLatestFollowersAsync(string channel)
Expand Down

0 comments on commit 67bc433

Please sign in to comment.