From 48025d969c2707870ca844b4c93b22a9b4400eae Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 5 Oct 2021 00:59:35 +0300 Subject: [PATCH] Document necessity of TDLib instance closing. --- td/telegram/td_json_client.h | 1 + 1 file changed, 1 insertion(+) diff --git a/td/telegram/td_json_client.h b/td/telegram/td_json_client.h index 2cfa975c8..e16c7ced7 100644 --- a/td/telegram/td_json_client.h +++ b/td/telegram/td_json_client.h @@ -112,6 +112,7 @@ TDJSON_EXPORT void td_json_client_destroy(void *client); * Also note that all updates and responses to requests must be applied in the order they were received for consistency. * Some TDLib requests can be executed synchronously from any thread using td_execute. * TDLib client instances are destroyed automatically after they are closed. + * All TDLib client instances must be closed before application termination to ensure data consistency. * * General pattern of usage: * \code