ENet: Remove redundant if condition

Closes #22445.
This commit is contained in:
Rémi Verschelde 2018-09-26 10:53:45 +02:00
parent d064b8e055
commit a2b6be23ad

View file

@ -293,7 +293,7 @@ void NetworkedMultiplayerENet::poll() {
encode_uint32(*id, &packet->data[4]);
enet_peer_send(E->get(), SYSCH_CONFIG, packet);
}
} else if (!server) {
} else {
emit_signal("server_disconnected");
close_connection();
return;