From a346d5d21968a3c29844b5552dc7f59a6f8e4ab3 Mon Sep 17 00:00:00 2001 From: T'kael Date: Mon, 3 Jun 2024 00:43:49 -0700 Subject: [PATCH] Make sure to use `CompleteAdding` to complete event threads that have no additional events to handle. --- VoiceAttackResponder/VoiceAttackEventHandler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/VoiceAttackResponder/VoiceAttackEventHandler.cs b/VoiceAttackResponder/VoiceAttackEventHandler.cs index 8cc8106eea..08e4c7b06b 100644 --- a/VoiceAttackResponder/VoiceAttackEventHandler.cs +++ b/VoiceAttackResponder/VoiceAttackEventHandler.cs @@ -92,6 +92,7 @@ private static void dequeueEvents ( BlockingCollection eventQueue, ref dy if ( eventQueue.Count == 0 ) { // If the event queue is empty then we can complete and clean up the associated consumer task. + eventQueue.CompleteAdding(); return; } }