From 8988b88b22d344f3381a23d465880004e6c863f4 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 1 Apr 2023 12:49:26 +0200 Subject: [PATCH] removed unused if statement from why2_communicate_thread loop --- 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 a60e1ee..3609f47 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -328,7 +328,7 @@ void *why2_communicate_thread(void *arg) received = read_socket_from_raw(raw); - if (received == NULL || raw == NULL) return NULL; //FAILED; EXIT THREAD + if (received == NULL) break; //FAILED; EXIT THREAD decoded_buffer = get_string_from_json_string(raw, "message"); //DECODE