summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-23 13:55:20 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-23 13:55:20 +0100
commit09c8957f9d445a02ee167c41594ee41e48b8c60f (patch)
treedc52fa6cda2573a80aa9ab7b39993006106ec823 /modules
parent76d80c2cba0ca30585b3c39f2e5b7591b6f1726e (diff)
parent5cb60dff964087e03e667df3f1dfc2c857c19f54 (diff)
Merge pull request #73811 from Vsono/master
Fix WebSocketMultiplayerPeer server crash when a client tries to connect.
Diffstat (limited to 'modules')
-rw-r--r--modules/websocket/websocket_multiplayer_peer.cpp1
1 files changed, 1 insertions, 0 deletions
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<StreamPeerTLS> tls = static_cast<Ref<StreamPeerTLS>>(peer.connection);
tls->poll();