diff --git a/Core/Servers/Ws/SptWebSocketConnectionHandler.cs b/Core/Servers/Ws/SptWebSocketConnectionHandler.cs index af9e1998..18bf4140 100644 --- a/Core/Servers/Ws/SptWebSocketConnectionHandler.cs +++ b/Core/Servers/Ws/SptWebSocketConnectionHandler.cs @@ -62,18 +62,18 @@ public class SptWebSocketConnectionHandler : IWebSocketConnectionHandler _sockets.Add(sessionID, ws); - lock (_lockObject) - { - _socketAliveTimers.Add( - sessionID, - new Timer( - _ => { TimedTask(ws, sessionID); }, - null, - TimeSpan.Zero, - TimeSpan.FromMilliseconds(_httpConfig.WebSocketPingDelayMs) - ) - ); - } + // lock (_lockObject) + // { + // _socketAliveTimers.Add( + // sessionID, + // new Timer( + // _ => { TimedTask(ws, sessionID); }, + // null, + // TimeSpan.Zero, + // TimeSpan.FromMilliseconds(_httpConfig.WebSocketPingDelayMs) + // ) + // ); + // } lock (_lockObject) {