fixed timeouts in TbDeviceProfileNode
This commit is contained in:
parent
d31358b2ea
commit
6f6d8b9d50
@ -125,8 +125,10 @@ public class TbDeviceProfileNode implements TbNode {
|
|||||||
DeviceId deviceId = new DeviceId(msg.getOriginator().getId());
|
DeviceId deviceId = new DeviceId(msg.getOriginator().getId());
|
||||||
if (msg.getType().equals(DataConstants.ENTITY_UPDATED)) {
|
if (msg.getType().equals(DataConstants.ENTITY_UPDATED)) {
|
||||||
invalidateDeviceProfileCache(deviceId, msg.getData());
|
invalidateDeviceProfileCache(deviceId, msg.getData());
|
||||||
|
ctx.tellSuccess(msg);
|
||||||
} else if (msg.getType().equals(DataConstants.ENTITY_DELETED)) {
|
} else if (msg.getType().equals(DataConstants.ENTITY_DELETED)) {
|
||||||
removeDeviceState(deviceId);
|
removeDeviceState(deviceId);
|
||||||
|
ctx.tellSuccess(msg);
|
||||||
} else {
|
} else {
|
||||||
DeviceState deviceState = getOrCreateDeviceState(ctx, deviceId, null);
|
DeviceState deviceState = getOrCreateDeviceState(ctx, deviceId, null);
|
||||||
if (deviceState != null) {
|
if (deviceState != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user