[td-225] remove false assert

This commit is contained in:
Haojun Liao 2020-10-10 10:23:22 +08:00
parent 584ad68967
commit 4b3254a380
1 changed files with 4 additions and 2 deletions

View File

@ -698,8 +698,10 @@ void taos_stop_query(TAOS_RES *res) {
tscKillSTableQuery(pSql);
} else {
if (pSql->cmd.command < TSDB_SQL_LOCAL) {
assert(pSql->pRpcCtx != NULL);
rpcCancelRequest(pSql->pRpcCtx);
if (pSql->pRpcCtx != NULL) {
rpcCancelRequest(pSql->pRpcCtx);
pSql->pRpcCtx = NULL;
}
}
}