From 274a3e17724b1b326db76b9dd68d5f34c61d5f3c Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 26 Feb 2024 15:19:41 +0100 Subject: [PATCH] revert "sending ssqc on every message loop end" this reverts commit b14c8de7105a9f570a227ce7f8608103b205eca9 it seems that I created the check for some reason --- 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 e7cefd0..9422297 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -665,7 +665,7 @@ void *why2_communicate_thread(void *arg) json_object_put(json); } - send_socket_deallocate(WHY2_CHAT_CODE_SSQC, why2_chat_server_config("server_username"), connection); + if (exiting) send_socket_deallocate(WHY2_CHAT_CODE_SSQC, why2_chat_server_config("server_username"), connection); printf("User disconnected.\t%d\n", connection);