net: fix client disconnect

isolation_bkp/dynres
Dominik Madarász 2022-07-30 20:28:33 +02:00
parent 80fbb030bd
commit d15f6ee8ab
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ int32_t network_client_connect(const char *hostname, uint16_t port) {
} }
int32_t network_client_disconnect() { int32_t network_client_disconnect() {
enet_peer_disconnect_now(peer, 0); enet_peer_disconnect(peer, 0);
enet_host_destroy(host); enet_host_destroy(host);
librg_world_destroy(world); librg_world_destroy(world);