From 38807cc198f604e10cb6c11e5d6529093b802fce Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 6 Aug 2025 15:59:52 +0200 Subject: [PATCH] fix deadlock --- EDJournalWatcher/Program.cs | 1 + EDPlayerJournal/JournalStream.cs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/EDJournalWatcher/Program.cs b/EDJournalWatcher/Program.cs index e9f9770..0742e65 100644 --- a/EDJournalWatcher/Program.cs +++ b/EDJournalWatcher/Program.cs @@ -12,6 +12,7 @@ public class Program { while (true) { stream.ProcessQueues(); + Thread.Sleep(100); } } diff --git a/EDPlayerJournal/JournalStream.cs b/EDPlayerJournal/JournalStream.cs index 3832a58..bff6731 100644 --- a/EDPlayerJournal/JournalStream.cs +++ b/EDPlayerJournal/JournalStream.cs @@ -20,7 +20,6 @@ public class SyncQueue { if (Monitor.TryEnter(queue)) { T retval; - Monitor.Enter(queue); try { queue.TryDequeue(out retval); } finally {