mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
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) {
|
||||
ERR_FAIL_COND_MSG(!_is_active(), "The multiplayer instance isn't currently active.");
|
||||
if (!_is_active()) {
|
||||
return;
|
||||
}
|
||||
|
||||
_pop_current_packet();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user