mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
fix(stream): add more check.
This commit is contained in:
parent
240d2c2a2c
commit
c2b6d0da62
1 changed files with 2 additions and 2 deletions
|
|
@ -602,9 +602,9 @@ int32_t streamTaskStop(SStreamTask* pTask) {
|
|||
stError("failed to handle STOP event, s-task:%s", id);
|
||||
}
|
||||
|
||||
if (pTask->info.taskLevel != TASK_LEVEL__SINK) {
|
||||
if (pTask->info.taskLevel != TASK_LEVEL__SINK && pTask->exec.pExecutor != NULL) {
|
||||
code = qKillTask(pTask->exec.pExecutor, TSDB_CODE_SUCCESS);
|
||||
if (code) {
|
||||
if (code != TSDB_CODE_SUCCESS) {
|
||||
stError("s-task:%s failed to kill task related query handle", id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue