fixed timeouts in TbDeviceProfileNode

This commit is contained in:
YevhenBondarenko 2021-01-12 13:20:17 +02:00 committed by Andrew Shvayka
parent d31358b2ea
commit 6f6d8b9d50

View File

@ -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) {