diff --git a/src/chat/server/main.c b/src/chat/server/main.c index 9091001..b10d56b 100644 --- a/src/chat/server/main.c +++ b/src/chat/server/main.c @@ -84,7 +84,7 @@ char *read_socket(int socket) content_buffer = why2_calloc(content_size + 1, sizeof(char)); //READ FINAL MESSAGE - if (recv(socket, content_buffer, content_size, 0) != content_size) why2_die("Reading socket failed!"); + if (recv(socket, content_buffer, content_size, 0) != content_size) fprintf(stderr, "Socket probably read wrongly!\n"); return content_buffer; }