summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-06 09:06:00 +0200
committerGitHub <noreply@github.com>2021-08-06 09:06:00 +0200
commit495319217244e576b150dcf1be2d75719c15cf2d (patch)
treefe584da37591c17d984568297591b189d1ad35df /modules
parent9c84233bfb149f659ec958d5a4c51a915dc27f2c (diff)
parenta816d74fdf30b9f8b00369ccf597998a99663bb5 (diff)
Merge pull request #51300 from Faless/enet/4.x_fix_status_connect
[Net] Fix ENetMultiplayerPeer status during connection.
Diffstat (limited to 'modules')
-rw-r--r--modules/enet/enet_multiplayer_peer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/enet/enet_multiplayer_peer.cpp b/modules/enet/enet_multiplayer_peer.cpp
index aa0e09bcde..38ca38385c 100644
--- a/modules/enet/enet_multiplayer_peer.cpp
+++ b/modules/enet/enet_multiplayer_peer.cpp
@@ -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;
}