From 893cd6f192e967e4b9ecb5e01b24e8b166425ce6 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 2 Dec 2024 21:00:50 +0000 Subject: [PATCH] Ignore messages that are in queue for too long --- TTSListening.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TTSListening.cs b/TTSListening.cs index 66403d6..77f6218 100644 --- a/TTSListening.cs +++ b/TTSListening.cs @@ -55,6 +55,12 @@ namespace TwitchChatTTS return; } + if (DateTime.UtcNow - group.Timestamp > TimeSpan.FromSeconds(60)) + { + _logger.Debug("Ignored message due to being in queue for too long."); + continue; + } + FetchMasterAudio(group); } catch (COMException e)