Browse Source
Merge pull request #12581 from smatvienko-tb/hotfix/device_subscriptions_remove_on_session_limit
core device actor: device subscriptions remove on session limit
pull/12593/head
Andrew Shvayka
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
application/src/main/java/org/thingsboard/server/actors/device/DeviceActorMessageProcessor.java
|
|
|
@ -865,6 +865,8 @@ public class DeviceActorMessageProcessor extends AbstractContextAwareMsgProcesso |
|
|
|
} |
|
|
|
|
|
|
|
private void notifyTransportAboutClosedSessionMaxSessionsLimit(UUID sessionId, SessionInfoMetaData sessionMd) { |
|
|
|
attributeSubscriptions.remove(sessionId); |
|
|
|
rpcSubscriptions.remove(sessionId); |
|
|
|
notifyTransportAboutClosedSession(sessionId, sessionMd, TransportSessionCloseReason.MAX_CONCURRENT_SESSIONS_LIMIT_REACHED); |
|
|
|
} |
|
|
|
|
|
|
|
|