Skip to content

Commit

Permalink
Merge pull request #102861 from Faless/mp/enet_close_destroy
Browse files Browse the repository at this point in the history
[ENet] Explicitely destroy hosts on close
  • Loading branch information
akien-mga committed Feb 14, 2025
2 parents 7a0e659 + 062413f commit 5da66eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/enet/enet_multiplayer_peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ void ENetMultiplayerPeer::close() {
}
for (KeyValue<int, Ref<ENetConnection>> &E : hosts) {
E.value->flush();
E.value->destroy();
}

active_mode = MODE_NONE;
Expand Down

0 comments on commit 5da66eb

Please sign in to comment.