Browse Source

Typo fix

pull/7055/head
Andrii Shvaika 4 years ago
parent
commit
086168a758
  1. 2
      application/src/main/java/org/thingsboard/server/service/state/DefaultDeviceStateService.java

2
application/src/main/java/org/thingsboard/server/service/state/DefaultDeviceStateService.java

@ -369,7 +369,7 @@ public class DefaultDeviceStateService extends AbstractPartitionBasedService<Dev
} else { } else {
states = fetchDeviceStateDataUsingEntityDataQuery(partition); states = fetchDeviceStateDataUsingEntityDataQuery(partition);
} }
if (devicePackFutureHolder.future != null && !devicePackFutureHolder.future.isCancelled()) { if (devicePackFutureHolder.future == null || !devicePackFutureHolder.future.isCancelled()) {
for (var state : states) { for (var state : states) {
if (!addDeviceUsingState(entry.getKey(), state)) { if (!addDeviceUsingState(entry.getKey(), state)) {
return; return;

Loading…
Cancel
Save