mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #102861 from Faless/mp/enet_close_destroy
[ENet] Explicitely destroy hosts on close
This commit is contained in:
commit
5da66ebc57
1 changed files with 1 additions and 0 deletions
|
@ -301,6 +301,7 @@ void ENetMultiplayerPeer::close() {
|
||||||
}
|
}
|
||||||
for (KeyValue<int, Ref<ENetConnection>> &E : hosts) {
|
for (KeyValue<int, Ref<ENetConnection>> &E : hosts) {
|
||||||
E.value->flush();
|
E.value->flush();
|
||||||
|
E.value->destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
active_mode = MODE_NONE;
|
active_mode = MODE_NONE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue