refactor transport
This commit is contained in:
parent
77c7ee264c
commit
81a4ef73f1
|
@ -1803,13 +1803,13 @@ static void cliBatchDealReq(queue* wq, SCliThrd* pThrd) {
|
||||||
|
|
||||||
SCliMsg* pMsg = QUEUE_DATA(h, SCliMsg, q);
|
SCliMsg* pMsg = QUEUE_DATA(h, SCliMsg, q);
|
||||||
|
|
||||||
if (pMsg->type == Quit) {
|
if (pMsg->type == Normal && REQUEST_NO_RESP(&pMsg->msg)) {
|
||||||
pThrd->stopMsg = pMsg;
|
cliBuildBatch(pMsg, h, pThrd);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pMsg->type == Normal && REQUEST_NO_RESP(&pMsg->msg)) {
|
if (pMsg->type == Quit) {
|
||||||
cliBuildBatch(pMsg, h, pThrd);
|
pThrd->stopMsg = pMsg;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
(*cliAsyncHandle[pMsg->type])(pMsg, pThrd);
|
(*cliAsyncHandle[pMsg->type])(pMsg, pThrd);
|
||||||
|
|
Loading…
Reference in New Issue