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) {