fix: make CI happy

This commit is contained in:
yihaoDeng 2022-09-09 19:09:24 +08:00
parent fadd7317af
commit 58c410118f
1 changed files with 4 additions and 2 deletions

View File

@ -425,7 +425,7 @@ void cliHandleExceptImpl(SCliConn* pConn, int32_t code) {
transMsg.info.ahandle);
}
} else {
transMsg.info.ahandle = pCtx ? pCtx->ahandle : NULL;
transMsg.info.ahandle = (pMsg->type != Release && pCtx) ? pCtx->ahandle : NULL;
}
if (pCtx == NULL || pCtx->pSem == NULL) {
@ -934,7 +934,9 @@ void cliHandleReq(SCliMsg* pMsg, SCliThrd* pThrd) {
// persist conn already release by server
STransMsg resp;
cliBuildExceptResp(pMsg, &resp);
pTransInst->cfp(pTransInst->parent, &resp, NULL);
if (pMsg->type != Release) {
pTransInst->cfp(pTransInst->parent, &resp, NULL);
}
destroyCmsg(pMsg);
return;
}