diff --git a/src/chat/misc.c b/src/chat/misc.c index c6a9220..7da33aa 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -264,8 +264,8 @@ void *stop_oldest_thread(void *id) { sleep(WHY2_COMMUNICATION_TIME); //yk wait if (waiting_list.head == NULL) return NULL; - - if (*(pthread_t*) waiting_list.head -> value == *(pthread_t*) id) //THREAD IS STILL ALIVE, I HOPE + printf("A\n"); + if (**(pthread_t**) waiting_list.head -> value == *(pthread_t*) id) //THREAD IS STILL ALIVE, I HOPE { //KILL THE THREAD pthread_cancel(*(pthread_t*) id);