提交 3a3c6fac 编写于 作者: dengyihao's avatar dengyihao

start timer for particular msg

上级 0753087e
...@@ -782,7 +782,7 @@ void cliSend(SCliConn* pConn) { ...@@ -782,7 +782,7 @@ void cliSend(SCliConn* pConn) {
} }
if (pTransInst->startTimer != NULL && pTransInst->startTimer(0, pMsg->msgType)) { 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) { if (timer == NULL) {
tDebug("no avaiable timer, create"); tDebug("no avaiable timer, create");
timer = taosMemoryCalloc(1, sizeof(uv_timer_t)); timer = taosMemoryCalloc(1, sizeof(uv_timer_t));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册