mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
[Net] Silence ENetMultiplayerPeer close_connection.
Used to print an error when it was not active, now it just returns immediately as per the documentation.
This commit is contained in:
parent
c97afc033f
commit
027fbc9a6c
@ -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