mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Fix removing connected peer during disconnection
This commit is contained in:
parent
81f3d43cc1
commit
bd8380db55
@ -428,7 +428,7 @@ void SceneMultiplayer::disconnect_peer(int p_id) {
|
||||
if (pending_peers.has(p_id)) {
|
||||
pending_peers.erase(p_id);
|
||||
} else if (connected_peers.has(p_id)) {
|
||||
connected_peers.has(p_id);
|
||||
connected_peers.erase(p_id);
|
||||
}
|
||||
multiplayer_peer->disconnect_peer(p_id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user