sending WHY2_CHAT_CODE_SSQC as a code

This commit is contained in:
Václav Šmejkal 2025-01-31 13:39:47 +01:00
parent fa8560d51a
commit 3b603f25e8
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -857,7 +857,7 @@ void *why2_communicate_thread(void *arg)
json_object_put(json); json_object_put(json);
} }
if (exiting) send_socket_deallocate(WHY2_CHAT_CODE_SSQC, why2_chat_server_config("server_username"), connection); if (exiting) send_socket_code_deallocate(NULL, why2_chat_server_config("server_username"), connection, WHY2_CHAT_CODE_SSQC);
printf("User disconnected.\t%d\n", connection); printf("User disconnected.\t%d\n", connection);
@ -904,7 +904,7 @@ void why2_clean_connections(void)
connection_buffer = *(connection_node_t*) node_buffer_2 -> value; connection_buffer = *(connection_node_t*) node_buffer_2 -> value;
send_socket_deallocate(WHY2_CHAT_CODE_SSQC, why2_chat_server_config("server_username"), connection_buffer.connection); send_socket_code_deallocate(NULL, why2_chat_server_config("server_username"), connection_buffer.connection, WHY2_CHAT_CODE_SSQC);
close(connection_buffer.connection); close(connection_buffer.connection);
why2_list_remove(&connection_list, node_buffer_2); //REMOVE why2_list_remove(&connection_list, node_buffer_2); //REMOVE