|
|
|
@ -84,9 +84,11 @@ public class MQTTEventAdapter implements InputEventAdapter {
|
|
|
|
|
.equals(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
synchronized (this.mqttAdapterListener) {
|
|
|
|
|
if (!mqttAdapterListener.isConnectionInitialized()) {
|
|
|
|
|
mqttAdapterListener.createConnection();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -102,10 +104,12 @@ public class MQTTEventAdapter implements InputEventAdapter {
|
|
|
|
|
if (ServerStatus.getCurrentStatus().equals(ServerStatus.STATUS_SHUTTING_DOWN)) {
|
|
|
|
|
Thread thread = new Thread(new Runnable() {
|
|
|
|
|
public void run() {
|
|
|
|
|
synchronized (mqttAdapterListener) {
|
|
|
|
|
if (mqttAdapterListener != null) {
|
|
|
|
|
mqttAdapterListener.stopListener(eventAdapterConfiguration.getName());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
thread.start();
|
|
|
|
|
thread.join(2000);
|
|
|
|
|