fix(stream): add task status check.

This commit is contained in:
Haojun Liao 2023-04-23 17:42:56 +08:00
parent 6fc364db19
commit 623ea6df5f
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ void streamCleanUp() {
void streamSchedByTimer(void* param, void* tmrId) {
SStreamTask* pTask = (void*)param;
if (atomic_load_8(&pTask->status.taskStatus) == TASK_STATUS__DROPPING) {
if (streamTaskShouldStop(&pTask->status)) {
streamMetaReleaseTask(NULL, pTask);
return;
}