Skip to content

Commit

Permalink
Oops can't work with several engines (for example in the tests).
Browse files Browse the repository at this point in the history
  • Loading branch information
jfclere committed Jan 26, 2011
1 parent 593f180 commit 8ac0afb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/org/jboss/modcluster/CatalinaEventHandler.java
Expand Up @@ -73,7 +73,6 @@ public class CatalinaEventHandler implements ContainerEventHandler<Server, Engin
private final LoadBalanceFactorProviderFactory loadBalanceFactorProviderFactory;

private volatile Server server = null;
private volatile Connector connector = null;

private volatile LoadBalanceFactorProvider loadBalanceFactorProvider;
private volatile AdvertiseListener advertiseListener;
Expand Down Expand Up @@ -332,10 +331,9 @@ public void status(Engine engine)
this.mcmpHandler.status();

// Send STATUS request
if (this.connector == null)
this.connector = Utils.findProxyConnector(engine.getService().findConnectors());
Connector connector = Utils.findProxyConnector(engine.getService().findConnectors());
int lbf = -1;
if (this.connector != null && connector.isAvailable())
if (connector != null && connector.isAvailable())
lbf = this.getLoadBalanceFactor();
MCMPRequest request = this.requestFactory.createStatusRequest(engine.getJvmRoute(), lbf);

Expand Down

0 comments on commit 8ac0afb

Please sign in to comment.