diff --git a/src/chat/misc.c b/src/chat/misc.c index 80d6a3a..2647a7c 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -225,6 +225,9 @@ void why2_clean_threads(void) node_buffer_2 = node_buffer; node_buffer = node_buffer -> next; + close(node_buffer_2 -> connection); + pthread_cancel(node_buffer_2 -> thread); + remove_node(node_buffer_2); //REMOVE } } \ No newline at end of file