Browse Source

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

Alex 12 years ago
parent
commit
e3fa68bc6b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cluster.go

+ 1 - 0
cluster.go

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