summaryrefslogtreecommitdiff
path: root/modules/enet
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-09-27 11:40:21 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-09-27 11:40:21 +0200
commite96e268e3b886d1a6f9e59ce2c8c404f1d39799d (patch)
tree7afe2a069ee12f6c983444fea7f7190c69e25199 /modules/enet
parent8138280d20f8b3974f0f268d4d65035aca30bebc (diff)
[ENet] Fix server not correctly relaying peer disconnects.
Diffstat (limited to 'modules/enet')
-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 afd31207f6..5bdc93dc78 100644
--- a/modules/enet/enet_multiplayer_peer.cpp
+++ b/modules/enet/enet_multiplayer_peer.cpp
@@ -173,7 +173,7 @@ bool ENetMultiplayerPeer::_poll_server() {
emit_signal(SNAME("peer_disconnected"), id);
peers.erase(id);
- if (!server_relay) {
+ if (server_relay) {
_notify_peers(id, false);
}
return false;