|
|
@ -350,7 +350,9 @@ public class DeviceManagementPluginRepository implements DeviceManagerStartupLis
|
|
|
|
if (deviceStatusTaskPluginConfig != null && deviceStatusTaskPluginConfig.isRequireStatusMonitoring()) {
|
|
|
|
if (deviceStatusTaskPluginConfig != null && deviceStatusTaskPluginConfig.isRequireStatusMonitoring()) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
DeviceManagementDataHolder.getInstance().removeDeviceStatusTaskPluginConfig(deviceType);
|
|
|
|
DeviceManagementDataHolder.getInstance().removeDeviceStatusTaskPluginConfig(deviceType);
|
|
|
|
|
|
|
|
if (deviceStatusTaskManagerService != null) {
|
|
|
|
deviceStatusTaskManagerService.stopTask(deviceType, deviceStatusTaskPluginConfig);
|
|
|
|
deviceStatusTaskManagerService.stopTask(deviceType, deviceStatusTaskPluginConfig);
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (DeviceStatusTaskException e) {
|
|
|
|
} catch (DeviceStatusTaskException e) {
|
|
|
|
throw new DeviceManagementException("Error occurred while stopping Device Status task service for '" +
|
|
|
|
throw new DeviceManagementException("Error occurred while stopping Device Status task service for '" +
|
|
|
|
deviceManagementService.getType() + "'", e);
|
|
|
|
deviceManagementService.getType() + "'", e);
|
|
|
|