From d598135f60250f7380d1d6f8b588ae01d02add38 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Mon, 27 Feb 2023 08:39:46 +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 99ec46ff77..b156d9b5dd 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -676,7 +676,7 @@ static SCliConn* getConnFromPool2(SCliThrd* pThrd, char* key, SCliMsg** pMsg) { return NULL; } - queue* h = QUEUE_HEAD(&plist->conns); + queue* h = QUEUE_TAIL(&plist->conns); plist->size -= 1; QUEUE_REMOVE(h);