From 2c051f2cb2a18d40a727431389b781a01b204880 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 22 Feb 2023 10:42:11 +0100 Subject: [PATCH] fixed why2_communicate_thread thread id problem --- src/chat/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;