ソースを参照

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)
 }