From 92b361de88cba4d5ef59155722a71a759c153cdb Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sat, 25 Feb 2023 22:22:56 +0800 Subject: [PATCH] fix: limit session num --- source/libs/transport/src/transCli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index 4b7b16baef..bb75f30dc6 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -603,7 +603,7 @@ static SCliConn* getConnFromPool(SCliThrd* pThrd, char* key, bool* exceed) { return NULL; } - queue* h = QUEUE_HEAD(&plist->conns); + queue* h = QUEUE_TAIL(&plist->conns); QUEUE_REMOVE(h); plist->size -= 1; -- GitLab