fix:[TD-33498]clear msg if unsubscribe

This commit is contained in:
wangmm0220 2025-01-09 15:53:47 +08:00
parent cc6b4beb5d
commit 4faf0eb9d3
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); code = tmq_subscribe(tmq, lst);
tmq_list_destroy(lst); tmq_list_destroy(lst);
tmqClearUnhandleMsg(tmq);
if(code != 0){ if(code != 0){
goto END; goto END;
} }