merge trans
This commit is contained in:
parent
28c930f920
commit
3c82cae1f1
|
@ -265,7 +265,7 @@ _RETURN:
|
||||||
|
|
||||||
void cliHandleExcept(SCliConn* pConn) {
|
void cliHandleExcept(SCliConn* pConn) {
|
||||||
if (transQueueEmpty(&pConn->cliMsgs)) {
|
if (transQueueEmpty(&pConn->cliMsgs)) {
|
||||||
if (pConn->broken == true || CONN_NO_PERSIST_BY_APP(pConn)) {
|
if (pConn->broken == true && CONN_NO_PERSIST_BY_APP(pConn)) {
|
||||||
transUnrefCliHandle(pConn);
|
transUnrefCliHandle(pConn);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,7 +291,11 @@ void uvOnSendCb(uv_write_t* req, int status) {
|
||||||
memset(&conn->regArg, 0, sizeof(conn->regArg));
|
memset(&conn->regArg, 0, sizeof(conn->regArg));
|
||||||
}
|
}
|
||||||
transQueuePop(&conn->srvMsgs);
|
transQueuePop(&conn->srvMsgs);
|
||||||
free(msg);
|
tfree(msg);
|
||||||
|
msg = (SSrvMsg*)transQueuePop(&conn->srvMsgs);
|
||||||
|
if (msg != NULL) {
|
||||||
|
uvStartSendRespInternal(msg);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
uvStartSendRespInternal(msg);
|
uvStartSendRespInternal(msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue