You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Merge pull request #86260 from Faless/mp/fix_2way_auth
[MP] Fix auth not waiting for confirmation in some cases
This commit is contained in:
@@ -96,11 +96,6 @@ Error SceneMultiplayer::poll() {
|
||||
#endif
|
||||
|
||||
if (pending_peers.has(sender)) {
|
||||
if (pending_peers[sender].local) {
|
||||
// If the auth is over, admit the peer at the first packet.
|
||||
pending_peers.erase(sender);
|
||||
_admit_peer(sender);
|
||||
} else {
|
||||
ERR_CONTINUE(len < 2 || (packet[0] & CMD_MASK) != NETWORK_COMMAND_SYS || packet[1] != SYS_COMMAND_AUTH);
|
||||
// Auth message.
|
||||
PackedByteArray pba;
|
||||
@@ -125,7 +120,6 @@ Error SceneMultiplayer::poll() {
|
||||
}
|
||||
continue; // Auth in progress.
|
||||
}
|
||||
}
|
||||
|
||||
ERR_CONTINUE(!connected_peers.has(sender));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user