소스 검색

Fix #40 pool/reconnection issue as suggested by @Kimbsen

Alex 12 년 전
부모
커밋
e3fa68bc6b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      cluster.go

+ 1 - 0
cluster.go

@@ -178,6 +178,7 @@ func (c *clusterImpl) removeConn(conn *Conn) {
 	connPool.RemoveNode(conn)
 	if connPool.Size() == 0 {
 		c.hostPool.RemoveNode(connPool)
+		delete(c.connPool, conn.addr)
 	}
 	delete(c.conns, conn)
 }