From 149e69f5acfc7d8b9d3129500c727324289f049b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Wed, 5 Mar 2025 14:25:10 -0500 Subject: [PATCH] rollback: testing to find out if we're getting duplicates --- .../ChatRules/TwitchChatMessageMonitorConsumer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Nullinside.Api.TwitchBot/ChatRules/TwitchChatMessageMonitorConsumer.cs b/src/Nullinside.Api.TwitchBot/ChatRules/TwitchChatMessageMonitorConsumer.cs index f36ef69..3254b3b 100644 --- a/src/Nullinside.Api.TwitchBot/ChatRules/TwitchChatMessageMonitorConsumer.cs +++ b/src/Nullinside.Api.TwitchBot/ChatRules/TwitchChatMessageMonitorConsumer.cs @@ -111,13 +111,14 @@ private async void MainLoop() { // Try to get a message from one of the two queues. ChatMessage? message; _queue.TryTake(out message); - + // If we didn't get a message, loop. if (null == message) { Thread.Sleep(LOOP_TIMEOUT); continue; } + LOG.Info("Message received: " + message.Id); string? channel = message.Channel; try { // Sanity check.