Merge pull request #52342 from Faless/enet/4.x_no_close_error
[Net] Silence ENetMultiplayerPeer close_connection.
This commit is contained in:
commit
d20031ccae
@ -393,7 +393,9 @@ bool ENetMultiplayerPeer::is_server() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ENetMultiplayerPeer::close_connection(uint32_t wait_usec) {
|
void ENetMultiplayerPeer::close_connection(uint32_t wait_usec) {
|
||||||
ERR_FAIL_COND_MSG(!_is_active(), "The multiplayer instance isn't currently active.");
|
if (!_is_active()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_pop_current_packet();
|
_pop_current_packet();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user