mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
few changes to resolve start up issues
This commit is contained in:
parent
087be385c4
commit
d2f59f50bb
@ -188,7 +188,7 @@ public class AndroidSenseControllerServiceImpl implements AndroidSenseController
|
|||||||
if (waitForServerStartup()) {
|
if (waitForServerStartup()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//The delay is added till the server starts up.
|
//The delay is added for the server to starts up.
|
||||||
try {
|
try {
|
||||||
Thread.sleep(5000);
|
Thread.sleep(5000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|||||||
@ -253,6 +253,12 @@ public class DigitalDisplayControllerServiceImpl implements DigitalDisplayContro
|
|||||||
if (waitForServerStartup()) {
|
if (waitForServerStartup()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
//The delay is added for the server to starts up.
|
||||||
|
try {
|
||||||
|
Thread.sleep(5000);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
Thread.currentThread().interrupt();
|
||||||
|
}
|
||||||
DigitalDisplayControllerServiceImpl.digitalDisplayMQTTConnector = digitalDisplayMQTTConnector;
|
DigitalDisplayControllerServiceImpl.digitalDisplayMQTTConnector = digitalDisplayMQTTConnector;
|
||||||
if (MqttConfig.getInstance().isEnabled()) {
|
if (MqttConfig.getInstance().isEnabled()) {
|
||||||
digitalDisplayMQTTConnector.connect();
|
digitalDisplayMQTTConnector.connect();
|
||||||
|
|||||||
@ -172,6 +172,12 @@ public class RaspberryPiControllerServiceImpl implements RaspberryPiControllerSe
|
|||||||
if (waitForServerStartup()) {
|
if (waitForServerStartup()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
//The delay is added for the server to starts up.
|
||||||
|
try {
|
||||||
|
Thread.sleep(5000);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
Thread.currentThread().interrupt();
|
||||||
|
}
|
||||||
RaspberryPiControllerServiceImpl.this.raspberryPiMQTTConnector = raspberryPiMQTTConnector;
|
RaspberryPiControllerServiceImpl.this.raspberryPiMQTTConnector = raspberryPiMQTTConnector;
|
||||||
if (MqttConfig.getInstance().isEnabled()) {
|
if (MqttConfig.getInstance().isEnabled()) {
|
||||||
raspberryPiMQTTConnector.connect();
|
raspberryPiMQTTConnector.connect();
|
||||||
|
|||||||
@ -391,6 +391,12 @@ public class VirtualFireAlarmControllerServiceImpl implements VirtualFireAlarmCo
|
|||||||
if (waitForServerStartup()) {
|
if (waitForServerStartup()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
//The delay is added for the server to starts up.
|
||||||
|
try {
|
||||||
|
Thread.sleep(5000);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
Thread.currentThread().interrupt();
|
||||||
|
}
|
||||||
VirtualFireAlarmControllerServiceImpl.this.virtualFireAlarmMQTTConnector = virtualFireAlarmMQTTConnector;
|
VirtualFireAlarmControllerServiceImpl.this.virtualFireAlarmMQTTConnector = virtualFireAlarmMQTTConnector;
|
||||||
if (MqttConfig.getInstance().isEnabled()) {
|
if (MqttConfig.getInstance().isEnabled()) {
|
||||||
virtualFireAlarmMQTTConnector.connect();
|
virtualFireAlarmMQTTConnector.connect();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user