This closes #372 ARTEMIS-376 NPE on Failback
This commit is contained in:
commit
de4e2cfe3a
|
@ -51,6 +51,7 @@ import org.apache.activemq.artemis.spi.core.remoting.Acceptor;
|
|||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class SharedNothingLiveActivation extends LiveActivation {
|
||||
|
@ -229,7 +230,9 @@ public class SharedNothingLiveActivation extends LiveActivation {
|
|||
|
||||
@Override
|
||||
public void connectionClosed() {
|
||||
activeMQServer.getThreadPool().execute(new Runnable() {
|
||||
ExecutorService executorService = activeMQServer.getThreadPool();
|
||||
if (executorService != null) {
|
||||
executorService.execute(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
synchronized (replicationLock) {
|
||||
|
@ -242,6 +245,7 @@ public class SharedNothingLiveActivation extends LiveActivation {
|
|||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Pair<TransportConfiguration, TransportConfiguration> getPair(TransportConfiguration conn, boolean isBackup) {
|
||||
if (isBackup) {
|
||||
|
|
Loading…
Reference in New Issue