fix: fix query thread stop issue

This commit is contained in:
dapan1121 2022-11-16 16:25:58 +08:00
parent 94070d294b
commit 08be4503c9
1 changed files with 2 additions and 0 deletions

View File

@ -1191,6 +1191,8 @@ void qWorkerStopAllTasks(void *qWorkerMgmt) {
if (QW_QUERY_RUNNING(ctx)) {
qwKillTaskHandle(ctx);
} else if (!QW_EVENT_PROCESSED(ctx, QW_EVENT_DROP)) {
QW_SET_EVENT_RECEIVED(ctx, QW_EVENT_DROP);
}
QW_UNLOCK(QW_WRITE, &ctx->lock);