fix deadlock

This commit is contained in:
Florian Stinglmayr 2025-08-06 15:59:52 +02:00
parent 26bf6f5e02
commit 38807cc198
2 changed files with 1 additions and 1 deletions

View File

@ -12,6 +12,7 @@ public class Program {
while (true) {
stream.ProcessQueues();
Thread.Sleep(100);
}
}

View File

@ -20,7 +20,6 @@ public class SyncQueue<T> {
if (Monitor.TryEnter(queue)) {
T retval;
Monitor.Enter(queue);
try {
queue.TryDequeue(out retval);
} finally {