From 917ee17930cc6007b5aba3850f81111b1d786b4c Mon Sep 17 00:00:00 2001 From: Proddy Date: Fri, 22 Mar 2024 18:18:55 +0000 Subject: [PATCH] Update FollowerService.cs Surrounding the tick methid in a `try`/`catch` block to prevent errors from stalling the service --- TwitchLib.Api/Services/FollowerService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TwitchLib.Api/Services/FollowerService.cs b/TwitchLib.Api/Services/FollowerService.cs index 879ab2aa..35ef7beb 100644 --- a/TwitchLib.Api/Services/FollowerService.cs +++ b/TwitchLib.Api/Services/FollowerService.cs @@ -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> GetLatestFollowersAsync(string channel)