提交 d5cfbebd 编写于 作者: D dapan1121

fix: fix kill query crash issue

上级 9a024590
......@@ -222,7 +222,9 @@ void taos_kill_query(TAOS *taos) {
int64_t rid = *(int64_t *)taos;
STscObj *pTscObj = acquireTscObj(rid);
stopAllRequests(pTscObj->pRequests);
if (pTscObj) {
stopAllRequests(pTscObj->pRequests);
}
releaseTscObj(rid);
}
......
......@@ -998,7 +998,9 @@ void *shellCancelHandler(void *arg) {
shell.stop_query = true;
} else {
#endif
taos_kill_query(shell.conn);
if (shell.conn) {
taos_kill_query(shell.conn);
}
#ifdef WEBSOCKET
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册