summaryrefslogtreecommitdiff
path: root/modules/websocket
diff options
context:
space:
mode:
authorVsono <26881983+Vsono@users.noreply.github.com>2023-02-23 18:59:55 +0900
committerunknown <26881983+Vsono@users.noreply.github.com>2023-02-23 20:00:00 +0900
commit5cb60dff964087e03e667df3f1dfc2c857c19f54 (patch)
tree467b0138d6a651be61a78620d21260ea72e1e2fe /modules/websocket
parent19c9fd6926b958016d562e3b2e93b0e9480300f5 (diff)
Fix WebSocketMultiplayerPeer server crash
Diffstat (limited to 'modules/websocket')
-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();