ClusterNode.info fixed

pull/337/head
Nikita 9 years ago
parent 5aa840938e
commit 58fb78fd9a

@ -94,14 +94,17 @@ public class RedisClientEntry implements ClusterNode {
@Override @Override
public Map<String, String> info() { public Map<String, String> info() {
RedisConnection c = connect(); RedisConnection c = null;
try { try {
c = connect();
return c.sync(RedisCommands.CLUSTER_INFO); return c.sync(RedisCommands.CLUSTER_INFO);
} catch (Exception e) { } catch (Exception e) {
return null; return null;
} finally { } finally {
if (c != null) {
c.closeAsync(); c.closeAsync();
} }
} }
}
} }

Loading…
Cancel
Save