Merge pull request #73811 from Vsono/master

Fix WebSocketMultiplayerPeer server crash when a client tries to connect.
This commit is contained in:
Rémi Verschelde 2023-02-23 13:55:20 +01:00
commit 09c8957f9d
No known key found for this signature in database
GPG Key ID: C3336907360768E1

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