Skip to content

Commit

Permalink
[ENet] Fix server not correctly relaying peer disconnects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Faless committed Sep 27, 2021
1 parent 8138280 commit e96e268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/enet/enet_multiplayer_peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e96e268

Please sign in to comment.