From 5cb60dff964087e03e667df3f1dfc2c857c19f54 Mon Sep 17 00:00:00 2001 From: Vsono <26881983+Vsono@users.noreply.github.com> Date: Thu, 23 Feb 2023 18:59:55 +0900 Subject: Fix WebSocketMultiplayerPeer server crash --- modules/websocket/websocket_multiplayer_peer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/websocket') diff --git a/modules/websocket/websocket_multiplayer_peer.cpp b/modules/websocket/websocket_multiplayer_peer.cpp index c12fc5e834..9e706dbeef 100644 --- a/modules/websocket/websocket_multiplayer_peer.cpp +++ b/modules/websocket/websocket_multiplayer_peer.cpp @@ -340,6 +340,7 @@ void WebSocketMultiplayerPeer::_poll_server() { to_remove.insert(id); continue; } + peer.connection = tls; } Ref tls = static_cast>(peer.connection); tls->poll(); -- cgit v1.2.3