diff --git a/src/main/java/net/spy/memcached/MemcachedConnection.java b/src/main/java/net/spy/memcached/MemcachedConnection.java index b3b2263fb..6f9c5441b 100644 --- a/src/main/java/net/spy/memcached/MemcachedConnection.java +++ b/src/main/java/net/spy/memcached/MemcachedConnection.java @@ -279,10 +279,10 @@ public MemcachedConnection(final int bufSize, final ConnectionFactory f, wakeupDelay = Integer.parseInt( System.getProperty("net.spy.wakeupDelay", Integer.toString(DEFAULT_WAKEUP_DELAY))); + metrics = f.getMetricCollector(); List connections = createConnections(a); locator = f.createLocator(connections); - metrics = f.getMetricCollector(); metricType = f.enableMetrics(); registerMetrics();