Merge pull request #132 from garyrussell/INT-2184

Lifecycle Problem With TCP OB Adapter
This commit is contained in:
Mark Fisher
2011-10-17 11:58:21 -04:00

View File

@@ -57,7 +57,7 @@ public class TcpSendingMessageHandler extends AbstractMessageHandler implements
private Map<String, TcpConnection> connections = new ConcurrentHashMap<String, TcpConnection>();
private volatile boolean autoStartup;
private volatile boolean autoStartup = true;
private volatile int phase;
@@ -233,9 +233,7 @@ public class TcpSendingMessageHandler extends AbstractMessageHandler implements
}
public boolean isRunning() {
boolean cfRunning = this.clientConnectionFactory != null ? this.clientConnectionFactory.isRunning() : false;
boolean sfRunning = this.serverConnectionFactory != null ? this.serverConnectionFactory.isRunning() : false;
return cfRunning | sfRunning;
return this.active;
}
public int getPhase() {