fix(stream): fix race condition

This commit is contained in:
Haojun Liao 2025-02-28 19:38:15 +08:00
parent 6e3f738490
commit 8c1d28219a
1 changed files with 3 additions and 0 deletions

View File

@ -1585,10 +1585,13 @@ int32_t streamTaskSendNegotiateChkptIdMsg(SStreamTask* pTask) {
pTask->pBackend = NULL;
}
streamMetaWLock(pTask->pMeta);
if (pTask->exec.pExecutor != NULL) {
qDestroyTask(pTask->exec.pExecutor);
pTask->exec.pExecutor = NULL;
}
streamMetaWUnLock(pTask->pMeta);
return 0;
}