diff options
author | Ansa89 <ansalonistefano@gmail.com> | 2016-12-16 11:56:51 +0100 |
---|---|---|
committer | Ansa89 <ansalonistefano@gmail.com> | 2017-04-01 17:47:34 +0200 |
commit | 5ff099763b1f56414572e1c12eb2f003117db5a0 (patch) | |
tree | 300a850c82970ec9462fa43d346a3e7f799de186 /toxcore/network.c | |
parent | 200ee1cace2f17537e6982ac447ea65d7c7a00b3 (diff) |
Implement tox_loop
Diffstat (limited to 'toxcore/network.c')
-rw-r--r-- | toxcore/network.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index 215ab8e0..62b36ae6 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -797,6 +797,16 @@ void kill_networking(Networking_Core *net) | |||
797 | kill_sock(net->sock); | 797 | kill_sock(net->sock); |
798 | } | 798 | } |
799 | 799 | ||
800 | #ifdef HAVE_LIBEV | ||
801 | ev_io_stop(net->sock_listener.dispatcher, &net->sock_listener.listener); | ||
802 | #elif HAVE_LIBEVENT | ||
803 | |||
804 | if (net->sock_listener) { | ||
805 | event_free(net->sock_listener); | ||
806 | } | ||
807 | |||
808 | #endif | ||
809 | |||
800 | free(net); | 810 | free(net); |
801 | } | 811 | } |
802 | 812 | ||