fix: limit session num

This commit is contained in:
yihaoDeng 2023-02-27 08:39:46 +08:00
parent 4a196e74af
commit d598135f60
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,7 @@ static SCliConn* getConnFromPool2(SCliThrd* pThrd, char* key, SCliMsg** pMsg) {
return NULL; return NULL;
} }
queue* h = QUEUE_HEAD(&plist->conns); queue* h = QUEUE_TAIL(&plist->conns);
plist->size -= 1; plist->size -= 1;
QUEUE_REMOVE(h); QUEUE_REMOVE(h);