fix: handle except

This commit is contained in:
yihaoDeng 2022-06-22 10:00:53 +08:00
parent c485e023fc
commit 6cad304934
1 changed files with 2 additions and 3 deletions

View File

@ -476,10 +476,9 @@ static SCliConn* getConnFromPool(void* pool, char* ip, uint32_t port) {
if (QUEUE_IS_EMPTY(&plist->conn)) {
return NULL;
}
queue* h = QUEUE_HEAD(&plist->conn);
// //QUEUE_REMOVE(h);
queue* h = QUEUE_HEAD(&plist->conn);
SCliConn* conn = QUEUE_DATA(h, SCliConn, conn);
// conn->status = ConnNormal;
conn->status = ConnNormal;
QUEUE_REMOVE(&conn->conn);
QUEUE_INIT(&conn->conn);
return conn;