fix:[TD-33600] windows error if taos exist without connection
This commit is contained in:
parent
931f4e354f
commit
b8a5bcfbf9
|
@ -1601,6 +1601,11 @@ void tmqFreeImpl(void* handle) {
|
||||||
|
|
||||||
static void tmqMgmtInit(void) {
|
static void tmqMgmtInit(void) {
|
||||||
tmqInitRes = 0;
|
tmqInitRes = 0;
|
||||||
|
|
||||||
|
if (taosThreadMutexInit(&tmqMgmt.lock, NULL) != 0){
|
||||||
|
goto END;
|
||||||
|
}
|
||||||
|
|
||||||
tmqMgmt.timer = taosTmrInit(1000, 100, 360000, "TMQ");
|
tmqMgmt.timer = taosTmrInit(1000, 100, 360000, "TMQ");
|
||||||
|
|
||||||
if (tmqMgmt.timer == NULL) {
|
if (tmqMgmt.timer == NULL) {
|
||||||
|
@ -1612,10 +1617,6 @@ static void tmqMgmtInit(void) {
|
||||||
goto END;
|
goto END;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (taosThreadMutexInit(&tmqMgmt.lock, NULL) != 0){
|
|
||||||
goto END;
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
END:
|
END:
|
||||||
tmqInitRes = terrno;
|
tmqInitRes = terrno;
|
||||||
|
|
Loading…
Reference in New Issue