From 41291fd345402585186cea405c7c425b76db36c2 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 20 Apr 2023 09:45:39 +0200 Subject: [PATCH] removed server received messages --- src/chat/misc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index 2550ef6..63a4f36 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -294,6 +294,7 @@ void *why2_communicate_thread(void *arg) }; why2_list_push(&connection_list, &node, sizeof(node)); //ADD TO LIST + printf("User connected.\t\t%d\n", connection); void *buffer; char *received = NULL; @@ -360,8 +361,6 @@ void *why2_communicate_thread(void *arg) goto deallocation; //IGNORE MESSAGES BEGINNING WITH '!' } - printf("Received:\n%s\n\n", received); - pthread_create(&thread_buffer, NULL, send_to_all, raw); pthread_join(thread_buffer, NULL); @@ -376,7 +375,7 @@ void *why2_communicate_thread(void *arg) raw_ptr = NULL; } - printf("User exited.\t%d\n", connection); + printf("User disconnected.\t%d\n", connection); //DEALLOCATION why2_deallocate(received);