added thread cancelling to why2_clean_threads
This commit is contained in:
parent
128cba4bf9
commit
a5ec2c936b
@ -225,6 +225,9 @@ void why2_clean_threads(void)
|
|||||||
node_buffer_2 = node_buffer;
|
node_buffer_2 = node_buffer;
|
||||||
node_buffer = node_buffer -> next;
|
node_buffer = node_buffer -> next;
|
||||||
|
|
||||||
|
close(node_buffer_2 -> connection);
|
||||||
|
pthread_cancel(node_buffer_2 -> thread);
|
||||||
|
|
||||||
remove_node(node_buffer_2); //REMOVE
|
remove_node(node_buffer_2); //REMOVE
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user