You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
[Net] Fix ENetMultiplayerPeer status during connection.
While the client emitting "peer_connect" for the server, the status was still set to CONNECTION_CONNECTING, causing bugs in the upper layer.
This commit is contained in:
@@ -242,8 +242,8 @@ bool ENetMultiplayerPeer::_poll_client() {
|
||||
}
|
||||
switch (ret) {
|
||||
case ENetConnection::EVENT_CONNECT: {
|
||||
emit_signal(SNAME("peer_connected"), 1);
|
||||
connection_status = CONNECTION_CONNECTED;
|
||||
emit_signal(SNAME("peer_connected"), 1);
|
||||
emit_signal(SNAME("connection_succeeded"));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user