mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 04:33:29 +00:00
Merge pull request #51300 from Faless/enet/4.x_fix_status_connect
[Net] Fix ENetMultiplayerPeer status during connection.
This commit is contained in:
commit
4953192172
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user