diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-23 13:55:20 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-23 13:55:20 +0100 |
commit | 09c8957f9d445a02ee167c41594ee41e48b8c60f (patch) | |
tree | dc52fa6cda2573a80aa9ab7b39993006106ec823 /modules | |
parent | 76d80c2cba0ca30585b3c39f2e5b7591b6f1726e (diff) | |
parent | 5cb60dff964087e03e667df3f1dfc2c857c19f54 (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.cpp | 1 |
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(); |