fix(stream): reset the activeTrans if pause recv repeatly.
This commit is contained in:
parent
2a3cb14d2e
commit
a58371b0ee
|
@ -525,11 +525,12 @@ int32_t streamTaskOnHandleEventSuccess(SStreamTaskSM* pSM, EStreamTaskEvent even
|
||||||
// repeat pause will not overwrite the previous pause state
|
// repeat pause will not overwrite the previous pause state
|
||||||
if (pSM->current.state != TASK_STATUS__PAUSE || pTrans->next.state != TASK_STATUS__PAUSE) {
|
if (pSM->current.state != TASK_STATUS__PAUSE || pTrans->next.state != TASK_STATUS__PAUSE) {
|
||||||
keepPrevInfo(pSM);
|
keepPrevInfo(pSM);
|
||||||
|
|
||||||
pSM->current = pTrans->next;
|
pSM->current = pTrans->next;
|
||||||
pSM->pActiveTrans = NULL;
|
} else {
|
||||||
|
stDebug("s-task:%s repeat pause evt recv, not update prev status", id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pSM->pActiveTrans = NULL;
|
||||||
// todo remove it
|
// todo remove it
|
||||||
// todo: handle the error code
|
// todo: handle the error code
|
||||||
// on success callback, add into lock if necessary, or maybe we should add an option for this?
|
// on success callback, add into lock if necessary, or maybe we should add an option for this?
|
||||||
|
|
Loading…
Reference in New Issue