浏览代码

Merge pull request #63 from alexzorin/40_hostpool

Fix #40 pool/reconnection issue as suggested by @Kimbsen
Christoph Hack 12 年之前
父节点
当前提交
a4d5e86a5e
共有 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)
 }