fix:[TD-30915]tmq exit elegantly

This commit is contained in:
wangmm0220 2024-07-08 15:33:04 +08:00
parent e14d11c78a
commit 2ce9d05f75
1 changed files with 3 additions and 6 deletions

View File

@ -1065,16 +1065,13 @@ void tmqFreeImpl(void* handle) {
taos_close_internal(tmq->pTscObj);
if(tmq->commitTimer) {
taosTmrStopA(tmq->commitTimer);
tmq->commitTimer = NULL;
taosTmrStopA(&tmq->commitTimer);
}
if(tmq->epTimer) {
taosTmrStopA(tmq->epTimer);
tmq->epTimer = NULL;
taosTmrStopA(&tmq->epTimer);
}
if(tmq->hbLiveTimer) {
taosTmrStopA(tmq->hbLiveTimer);
tmq->hbLiveTimer = NULL;
taosTmrStopA(&tmq->hbLiveTimer);
}
taosMemoryFree(tmq);