From 6e1803fc9d7c9351b689bb2736e93347fcd70688 Mon Sep 17 00:00:00 2001 From: Mona Hmiza <> Date: Thu, 22 Jun 2023 14:46:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A5=D0=B2=D0=B0=D1=82=D0=B8=D1=82=20=D1=81?= =?UTF-8?q?=D1=80=D0=B0=D1=82=D1=8C=20=D0=BD=D0=B0=D0=BC=20=D0=B2=20=D1=80?= =?UTF-8?q?=D0=B5=D0=BF=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/UtkaIntegration/TCP/UtkaTCPServer.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Server/UtkaIntegration/TCP/UtkaTCPServer.cs b/Content.Server/UtkaIntegration/TCP/UtkaTCPServer.cs index 5426af7abf..75b512016d 100644 --- a/Content.Server/UtkaIntegration/TCP/UtkaTCPServer.cs +++ b/Content.Server/UtkaIntegration/TCP/UtkaTCPServer.cs @@ -1,4 +1,5 @@ -using System.Linq; +using System.Collections.Concurrent; +using System.Linq; using System.Net; using System.Net.Sockets; using System.Reflection; @@ -25,7 +26,7 @@ public sealed class UtkaTCPServer : TcpServer [Dependency] private readonly ITaskManager _taskManager = default!; [Dependency] private readonly ITimerManager _timerManager = default!; - public static readonly Dictionary Commands = new(); + public static readonly ConcurrentDictionary Commands = new(); private List _authenticatedSessions = new(); private string? _key;