start timer for particular msg
This commit is contained in:
parent
0753087e88
commit
3a3c6fac6b
|
@ -782,7 +782,7 @@ void cliSend(SCliConn* pConn) {
|
|||
}
|
||||
|
||||
if (pTransInst->startTimer != NULL && pTransInst->startTimer(0, pMsg->msgType)) {
|
||||
uv_timer_t* timer = taosArrayPop(pThrd->timerList);
|
||||
uv_timer_t* timer = taosArrayGetSize(pThrd->timerList) > 0 ? *(uv_timer_t**)taosArrayPop(pThrd->timerList) : NULL;
|
||||
if (timer == NULL) {
|
||||
tDebug("no avaiable timer, create");
|
||||
timer = taosMemoryCalloc(1, sizeof(uv_timer_t));
|
||||
|
|
Loading…
Reference in New Issue