Хватит срать нам в репу

This commit is contained in:
Mona Hmiza
2023-06-22 14:46:09 +03:00
committed by Aviu00
parent f2383c7cd4
commit 6e1803fc9d

View File

@@ -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<string, IUtkaCommand> Commands = new();
public static readonly ConcurrentDictionary<string, IUtkaCommand> Commands = new();
private List<UtkaTCPSession> _authenticatedSessions = new();
private string? _key;