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
No known key found for this signature in database
GPG key ID: 299B8E31E85DEED8

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