Merge pull request #29540 from taosdata/fix/TD-33498-main

fix:[TD-33498]clear msg if unsubscribe
This commit is contained in:
Shengliang Guan 2025-01-10 10:12:38 +08:00 committed by GitHub
commit b4f03124d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -2606,6 +2606,7 @@ int32_t tmq_unsubscribe(tmq_t* tmq) {
}
code = tmq_subscribe(tmq, lst);
tmq_list_destroy(lst);
tmqClearUnhandleMsg(tmq);
if(code != 0){
goto END;
}