Browse Source

fixed timeouts in TbDeviceProfileNode

pull/3944/head
YevhenBondarenko 6 years ago
committed by Andrew Shvayka
parent
commit
6f6d8b9d50
  1. 2
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/profile/TbDeviceProfileNode.java

2
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/profile/TbDeviceProfileNode.java

@ -125,8 +125,10 @@ public class TbDeviceProfileNode implements TbNode {
DeviceId deviceId = new DeviceId(msg.getOriginator().getId());
if (msg.getType().equals(DataConstants.ENTITY_UPDATED)) {
invalidateDeviceProfileCache(deviceId, msg.getData());
ctx.tellSuccess(msg);
} else if (msg.getType().equals(DataConstants.ENTITY_DELETED)) {
removeDeviceState(deviceId);
ctx.tellSuccess(msg);
} else {
DeviceState deviceState = getOrCreateDeviceState(ctx, deviceId, null);
if (deviceState != null) {

Loading…
Cancel
Save