Browse Source

Merge pull request #7838 from YevhenBondarenko/fix/device-sessions-dump

[3.5] fixed device sessions dump
pull/7856/head
Andrew Shvayka 4 years ago
committed by GitHub
parent
commit
5cc449a686
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      application/src/main/java/org/thingsboard/server/service/session/DefaultDeviceSessionCacheService.java

2
application/src/main/java/org/thingsboard/server/service/session/DefaultDeviceSessionCacheService.java

@ -52,7 +52,7 @@ public class DefaultDeviceSessionCacheService implements DeviceSessionCacheServi
@Override
public DeviceSessionsCacheEntry put(DeviceId deviceId, DeviceSessionsCacheEntry sessions) {
log.debug("[{}] Pushing session data to cache: {}", deviceId, sessions);
cache.putIfAbsent(deviceId, sessions);
cache.put(deviceId, sessions);
return sessions;
}
}

Loading…
Cancel
Save