start timer for particular msg

This commit is contained in:
yihaoDeng 2022-08-06 18:08:46 +08:00
parent 0753087e88
commit 3a3c6fac6b
1 changed files with 1 additions and 1 deletions

View File

@ -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));