diff --git a/src/chat/misc.c b/src/chat/misc.c index 8dc14c5..f6c07c8 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -152,7 +152,7 @@ void *why2_communicate_thread(void *arg) printf("User exited.\t%d\n", *((int*) arg)); //DEALLOCATION - remove_node(get_node(why2_communicate_thread)); + remove_node(get_node(*((int*) arg))); close(*((int*) arg)); why2_deallocate(received);