diff --git a/src/chat/misc.c b/src/chat/misc.c index 2647a7c..ed7b381 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -134,7 +134,7 @@ void *why2_communicate_thread(void *arg) printf("User connected.\t%d\n", connection.connection); - push_to_list(connection.connection, connection.thread); + push_to_list(connection.connection, pthread_self()); //TODO: Do something with why2_connection_t const time_t startTime = time(NULL); char *received = NULL;