From c0c0ad689431f2361e0dc75f5497a62bc70e076f Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 31 Jan 2025 14:11:27 +0100 Subject: [PATCH] using codes in exit_client fn --- src/chat/main/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/main/client.c b/src/chat/main/client.c index aa15363..10449c6 100644 --- a/src/chat/main/client.c +++ b/src/chat/main/client.c @@ -43,7 +43,7 @@ void exit_client(WHY2_UNUSED int i) //guess what if (exited) return; exited = 1; - why2_send_socket(WHY2_CHAT_CODE_EXIT, NULL, listen_socket); + why2_send_socket_code(NULL, NULL, listen_socket, WHY2_CHAT_CODE_EXIT); } why2_bool command(char *input, char *command, char **arg)