fix quit error

This commit is contained in:
yihaoDeng 2024-10-30 10:01:23 +08:00
parent f0ec573611
commit 1dfad47bfa
1 changed files with 2 additions and 2 deletions

View File

@ -1246,8 +1246,8 @@ static void cliHandleException(SCliConn* conn) {
}
cliDestroyAllQidFromThrd(conn);
QUEUE_REMOVE(&conn->q);
if (conn->list) {
if (pThrd->quit == false && conn->list) {
QUEUE_REMOVE(&conn->q);
conn->list->totalSize -= 1;
conn->list = NULL;
}