Merge pull request #52343 from Faless/enet/3.x_no_close_error

[3.x] [Net] Silence ENetMultiplayerPeer close_connection.
This commit is contained in:
Fabio Alessandrelli 2021-09-03 10:39:53 +02:00 committed by GitHub
commit d136ac7f79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -446,7 +446,9 @@ bool NetworkedMultiplayerENet::is_server() const {
}
void NetworkedMultiplayerENet::close_connection(uint32_t wait_usec) {
ERR_FAIL_COND_MSG(!active, "The multiplayer instance isn't currently active.");
if (!active) {
return;
}
_pop_current_packet();