You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00: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.
(cherry picked from commit 25f33999af)
This commit is contained in:
committed by
Rémi Verschelde
parent
5d8ea604f9
commit
ac8ca76870
@@ -454,8 +454,9 @@ bool NetworkedMultiplayerENet::is_server() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NetworkedMultiplayerENet::close_connection(uint32_t wait_usec) {
|
void NetworkedMultiplayerENet::close_connection(uint32_t wait_usec) {
|
||||||
|
if (!active) {
|
||||||
ERR_FAIL_COND_MSG(!active, "The multiplayer instance isn't currently active.");
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_pop_current_packet();
|
_pop_current_packet();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user