summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.c
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2017-04-16 05:57:21 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2017-04-22 15:31:25 -0400
commitc7f63737ebfff2d1948ec9d6d92295a75d75cae5 (patch)
treeffaa46d8aecb53041ed61f6be73a4743fae6d4b1 /toxcore/TCP_client.c
parent5ed37e543825c023163adba95b99ea81d3337196 (diff)
Revert "Implement tox_loop"
This reverts commit 5ff099763b1f56414572e1c12eb2f003117db5a0.
Diffstat (limited to 'toxcore/TCP_client.c')
-rw-r--r--toxcore/TCP_client.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c
index 8989f244..3e6de14a 100644
--- a/toxcore/TCP_client.c
+++ b/toxcore/TCP_client.c
@@ -985,17 +985,6 @@ void kill_TCP_connection(TCP_Client_Connection *TCP_connection)
985 985
986 wipe_priority_list(TCP_connection); 986 wipe_priority_list(TCP_connection);
987 kill_sock(TCP_connection->sock); 987 kill_sock(TCP_connection->sock);
988
989#ifdef HAVE_LIBEV
990 ev_io_stop(TCP_connection->sock_listener.dispatcher, &TCP_connection->sock_listener.listener);
991#elif HAVE_LIBEVENT
992
993 if (TCP_connection->sock_listener) {
994 event_free(TCP_connection->sock_listener);
995 }
996
997#endif
998
999 crypto_memzero(TCP_connection, sizeof(TCP_Client_Connection)); 988 crypto_memzero(TCP_connection, sizeof(TCP_Client_Connection));
1000 free(TCP_connection); 989 free(TCP_connection);
1001} 990}