fix: fix compile error
This commit is contained in:
parent
16a5f01293
commit
26d86477f9
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue