1
0
Fork 0

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
1 changed files with 1 additions and 0 deletions

View File

@ -340,6 +340,7 @@ void WebSocketMultiplayerPeer::_poll_server() {
to_remove.insert(id); to_remove.insert(id);
continue; continue;
} }
peer.connection = tls;
} }
Ref<StreamPeerTLS> tls = static_cast<Ref<StreamPeerTLS>>(peer.connection); Ref<StreamPeerTLS> tls = static_cast<Ref<StreamPeerTLS>>(peer.connection);
tls->poll(); tls->poll();