提交 26d86477 编写于 作者: dengyihao's avatar dengyihao

fix: fix compile error

上级 16a5f012
...@@ -289,8 +289,12 @@ bool cliMaySendCachedMsg(SCliConn* conn) { ...@@ -289,8 +289,12 @@ 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);
cliSend(conn); if (pCliMsg == NULL)
return true; return false;
else {
cliSend(conn);
return true;
}
} }
return false; return false;
_RETURN: _RETURN:
...@@ -707,6 +711,9 @@ static bool cliHandleNoResp(SCliConn* conn) { ...@@ -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;
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册