fix: fix compile error

This commit is contained in:
yihaoDeng 2022-09-10 20:11:17 +08:00
parent 16a5f01293
commit 26d86477f9
1 changed files with 9 additions and 2 deletions

View File

@ -289,9 +289,13 @@ bool cliMaySendCachedMsg(SCliConn* conn) {
if (!transQueueEmpty(&conn->cliMsgs)) { if (!transQueueEmpty(&conn->cliMsgs)) {
SCliMsg* pCliMsg = NULL; SCliMsg* pCliMsg = NULL;
CONN_GET_NEXT_SENDMSG(conn); CONN_GET_NEXT_SENDMSG(conn);
if (pCliMsg == NULL)
return false;
else {
cliSend(conn); cliSend(conn);
return true; return true;
} }
}
return false; return false;
_RETURN: _RETURN:
return false; return false;
@ -707,6 +711,9 @@ static bool cliHandleNoResp(SCliConn* conn) {
if (cliMaySendCachedMsg(conn) == false) { if (cliMaySendCachedMsg(conn) == false) {
SCliThrd* thrd = conn->hostThrd; SCliThrd* thrd = conn->hostThrd;
addConnToPool(thrd->pool, conn); addConnToPool(thrd->pool, conn);
res = false;
} else {
res = true;
} }
} }
} }