Ignore messages that are in queue for too long

This commit is contained in:
Tom 2024-12-02 21:00:50 +00:00
parent b35183249b
commit 893cd6f192

View File

@ -55,6 +55,12 @@ namespace TwitchChatTTS
return; return;
} }
if (DateTime.UtcNow - group.Timestamp > TimeSpan.FromSeconds(60))
{
_logger.Debug("Ignored message due to being in queue for too long.");
continue;
}
FetchMasterAudio(group); FetchMasterAudio(group);
} }
catch (COMException e) catch (COMException e)