From 24b3bcaa9f22997d89d64aff0607a3b0b9e52b1c Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 8 Jul 2024 09:17:25 +0800 Subject: [PATCH] fix:[TD-30915]tmq exit elegantly --- source/client/src/clientMain.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/client/src/clientMain.c b/source/client/src/clientMain.c index d0bd1ec650..61b7afc6b1 100644 --- a/source/client/src/clientMain.c +++ b/source/client/src/clientMain.c @@ -83,12 +83,13 @@ void taos_cleanup(void) { taosConvDestroy(); - tscInfo("all local resources released"); - taosCleanupCfg(); - taosCloseLog(); tmqMgmtClose(); taosHashCleanup(appInfo.pInstMap); taosHashCleanup(appInfo.pInstMapByClusterId); + + tscInfo("all local resources released"); + taosCleanupCfg(); + taosCloseLog(); } static setConfRet taos_set_config_imp(const char *config) {