Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete persisted subscriptions that are in subscription resumption st…
…ate when a subscribeRequest command comes in with keepSubscription flag set to false from the same subscriber The Matter specification is saying: "If KeepSubscriptions is FALSE, all existing or pending subscriptions on the publisher for this subscriber SHALL be terminated." Currently only active readHandlers and corresponding persisted subscription were removed. The subscriptions that were persisted and in subscription resumption mode, were kept in persistent storage, keeping the subscription resumption mechanism active, so pending subscriptions were not terminated. This fixes, when a subscribeRequest come in with keepSubscriptions flag set to false, these persisted non-active subscriptions can be deleted as well and the subscription resumption mechanism can be stopped if no other subscription were resuming.
- Loading branch information