1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix WebSocketMultiplayerPeer server crash

This commit is contained in:
Vsono
2023-02-23 18:59:55 +09:00
committed by unknown
parent 19c9fd6926
commit 5cb60dff96

View File

@@ -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();