fix(stream): add task status check.
This commit is contained in:
parent
6fc364db19
commit
623ea6df5f
|
@ -52,7 +52,7 @@ void streamCleanUp() {
|
||||||
void streamSchedByTimer(void* param, void* tmrId) {
|
void streamSchedByTimer(void* param, void* tmrId) {
|
||||||
SStreamTask* pTask = (void*)param;
|
SStreamTask* pTask = (void*)param;
|
||||||
|
|
||||||
if (atomic_load_8(&pTask->status.taskStatus) == TASK_STATUS__DROPPING) {
|
if (streamTaskShouldStop(&pTask->status)) {
|
||||||
streamMetaReleaseTask(NULL, pTask);
|
streamMetaReleaseTask(NULL, pTask);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue