fix(stream): fix deference null ptr.
This commit is contained in:
parent
7cf90dde5c
commit
9156e8449d
|
@ -248,10 +248,12 @@ int32_t streamTaskHandleEvent(SStreamTaskSM* pSM, EStreamTaskEvent event) {
|
||||||
stDebug("s-task:%s lock", pTask->id.idStr);
|
stDebug("s-task:%s lock", pTask->id.idStr);
|
||||||
|
|
||||||
if (pSM->pActiveTrans != NULL && pSM->pActiveTrans->autoInvokeEndFn) {
|
if (pSM->pActiveTrans != NULL && pSM->pActiveTrans->autoInvokeEndFn) {
|
||||||
|
EStreamTaskEvent evt = pSM->pActiveTrans->event;
|
||||||
taosThreadMutexUnlock(&pTask->lock);
|
taosThreadMutexUnlock(&pTask->lock);
|
||||||
taosMsleep(100);
|
|
||||||
stDebug("s-task:%s status:%s handling event:%s by some other thread, wait for 100ms and check if completed",
|
stDebug("s-task:%s status:%s handling event:%s by some other thread, wait for 100ms and check if completed",
|
||||||
pTask->id.idStr, pSM->current.name, GET_EVT_NAME(pSM->pActiveTrans->event));
|
pTask->id.idStr, pSM->current.name, GET_EVT_NAME(evt));
|
||||||
|
taosMsleep(100);
|
||||||
} else {
|
} else {
|
||||||
pTrans = streamTaskFindTransform(pSM->current.state, event);
|
pTrans = streamTaskFindTransform(pSM->current.state, event);
|
||||||
if (pTrans == NULL) {
|
if (pTrans == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue