diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-22 16:28:34 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-22 16:29:15 +0100 |
commit | 16bca58803c5ff76de20889bc064f22e5305b9ed (patch) | |
tree | a0d154e84071677d1bd76a07fc8e4dc771c1f5a0 /net/net.c | |
parent | 02c89fceeb915e31b36dd4acb4218ccd913b2ce8 (diff) |
blinking cursor and fix net
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -117,8 +117,8 @@ int net_client_recv (net_client *c, char buffer[]) { void net_client_close (net_client *c) { if (c->socket != NULL) p_socket_close (c->socket, NULL); - p_socket_address_free (c->addr_server); - p_socket_free (c->socket); + if (c->addr_server != NULL) p_socket_address_free (c->addr_server); + if (c->socket != NULL) p_socket_free (c->socket); } |