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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|
} |
|
|
|
} |
|
|
|
|