mirror of https://github.com/godotengine/godot
[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
98e1b730c8
commit
25f33999af
|
|
@ -446,7 +446,9 @@ bool NetworkedMultiplayerENet::is_server() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetworkedMultiplayerENet::close_connection(uint32_t wait_usec) {
|
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();
|
_pop_current_packet();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue