mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #102861 from Faless/mp/enet_close_destroy
[ENet] Explicitely destroy hosts on close
This commit is contained in:
@@ -301,6 +301,7 @@ void ENetMultiplayerPeer::close() {
|
||||
}
|
||||
for (KeyValue<int, Ref<ENetConnection>> &E : hosts) {
|
||||
E.value->flush();
|
||||
E.value->destroy();
|
||||
}
|
||||
|
||||
active_mode = MODE_NONE;
|
||||
|
||||
Reference in New Issue
Block a user