fix:[TD-33498]clear msg if unsubscribe

This commit is contained in:
wangmm0220 2025-01-09 15:50:07 +08:00
parent 2129100590
commit 2a8ddc254b
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;
}