Commit 158436b14147709c8c7544e1a4763687b10f3d8f
Committed by
Andrew Shvayka
1 parent
addf0ede
fix typo
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -200,10 +200,10 @@ public class DefaultDeviceStateService implements DeviceStateService { |
200 | 200 | save(deviceId, LAST_ACTIVITY_TIME, lastReportedActivity); |
201 | 201 | deviceLastSavedActivity.put(deviceId, lastReportedActivity); |
202 | 202 | DeviceState state = stateData.getState(); |
203 | + state.setLastActivityTime(lastReportedActivity); | |
203 | 204 | if (!state.isActive()) { |
204 | 205 | state.setActive(true); |
205 | 206 | save(deviceId, ACTIVITY_STATE, state.isActive()); |
206 | - state.setLastActivityTime(lastReportedActivity); | |
207 | 207 | stateData.getMetaData().putValue("scope", SERVER_SCOPE); |
208 | 208 | pushRuleEngineMessage(stateData, ACTIVITY_EVENT); |
209 | 209 | } | ... | ... |