From 8bd927c75c9923674daae8ed40170f50dd6bf5b2 Mon Sep 17 00:00:00 2001 From: CWX Date: Fri, 17 Jan 2025 19:21:01 +0000 Subject: [PATCH] commented out ping, Nodeserver doesnt do this afaik --- .../Ws/SptWebSocketConnectionHandler.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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) {