handle quit error

This commit is contained in:
yihaoDeng 2024-10-30 11:56:24 +08:00
parent 52f9ea5963
commit 9f9b22e436
1 changed files with 4 additions and 0 deletions

View File

@ -905,6 +905,10 @@ static void addConnToPool(void* pool, SCliConn* conn) {
}
SCliThrd* thrd = conn->hostThrd;
if (thrd->quit == false) {
return;
}
cliResetConnTimer(conn);
if (conn->list == NULL && conn->dstAddr != NULL) {
conn->list = taosHashGet((SHashObj*)pool, conn->dstAddr, strlen(conn->dstAddr));