added thread cancelling to why2_clean_threads

This commit is contained in:
Václav Šmejkal 2023-02-22 10:19:36 +01:00
parent 128cba4bf9
commit a5ec2c936b
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59

View File

@ -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
} }
} }