From 9f7a6267f6cc05326d4639d15081d1ed1c26a12a Mon Sep 17 00:00:00 2001 From: Infi Date: Sun, 22 Mar 2026 15:03:37 +0100 Subject: [PATCH] - Swap Queue to ConcurrentQueue --- ChatTwo/ChatTwo.csproj | 2 +- ChatTwo/FontManager.cs | 1 - ChatTwo/Http/SSEConnection.cs | 5 +++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChatTwo/ChatTwo.csproj b/ChatTwo/ChatTwo.csproj index f3b911f..6e7b896 100755 --- a/ChatTwo/ChatTwo.csproj +++ b/ChatTwo/ChatTwo.csproj @@ -1,6 +1,6 @@ - 1.34.3 + 1.34.4 enable enable true diff --git a/ChatTwo/FontManager.cs b/ChatTwo/FontManager.cs index 41692b4..6aa3f45 100644 --- a/ChatTwo/FontManager.cs +++ b/ChatTwo/FontManager.cs @@ -21,7 +21,6 @@ public class FontManager private ushort[] Ranges; private ushort[] JpRange; - public static readonly HashSet AxisFontSizeList = [ 9.6f, 10f, 12f, 14f, 16f, diff --git a/ChatTwo/Http/SSEConnection.cs b/ChatTwo/Http/SSEConnection.cs index 6225481..7ce2fba 100644 --- a/ChatTwo/Http/SSEConnection.cs +++ b/ChatTwo/Http/SSEConnection.cs @@ -1,4 +1,5 @@ -using ChatTwo.Http.MessageProtocol; +using System.Collections.Concurrent; +using ChatTwo.Http.MessageProtocol; using WatsonWebserver.Core; namespace ChatTwo.Http; @@ -9,7 +10,7 @@ public class SSEConnection private readonly CancellationToken Token; public bool Done; - public readonly Queue OutboundQueue = new(); + public readonly ConcurrentQueue OutboundQueue = new(); public SSEConnection(CancellationToken token) {