commit
d060deff9c
|
@ -527,6 +527,10 @@ void uvOnSendCb(uv_write_t* req, int status) {
|
||||||
if (!transQueueEmpty(&conn->srvMsgs)) {
|
if (!transQueueEmpty(&conn->srvMsgs)) {
|
||||||
msg = (SSvrMsg*)transQueueGet(&conn->srvMsgs, 0);
|
msg = (SSvrMsg*)transQueueGet(&conn->srvMsgs, 0);
|
||||||
if (msg->type == Register && conn->status == ConnAcquire) {
|
if (msg->type == Register && conn->status == ConnAcquire) {
|
||||||
|
if (conn->regArg.init) {
|
||||||
|
transFreeMsg(conn->regArg.msg.pCont);
|
||||||
|
conn->regArg.init = 0;
|
||||||
|
}
|
||||||
conn->regArg.notifyCount = 0;
|
conn->regArg.notifyCount = 0;
|
||||||
conn->regArg.init = 1;
|
conn->regArg.init = 1;
|
||||||
conn->regArg.msg = msg->msg;
|
conn->regArg.msg = msg->msg;
|
||||||
|
@ -1350,6 +1354,11 @@ void uvHandleRegister(SSvrMsg* msg, SWorkThrd* thrd) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
transQueuePop(&conn->srvMsgs);
|
transQueuePop(&conn->srvMsgs);
|
||||||
|
|
||||||
|
if (conn->regArg.init) {
|
||||||
|
transFreeMsg(conn->regArg.msg.pCont);
|
||||||
|
conn->regArg.init = 0;
|
||||||
|
}
|
||||||
conn->regArg.notifyCount = 0;
|
conn->regArg.notifyCount = 0;
|
||||||
conn->regArg.init = 1;
|
conn->regArg.init = 1;
|
||||||
conn->regArg.msg = msg->msg;
|
conn->regArg.msg = msg->msg;
|
||||||
|
|
Loading…
Reference in New Issue