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