Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit d7dfb79

Browse files
fix pending update state clean when discarding Update
-- When application triggers `DiscardUpdate` with `WEAVE_NO_ERROR`, reset pending set state.
1 parent 5c933cd commit d7dfb79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/profiles/data-management/Current/SubscriptionClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2913,6 +2913,7 @@ void SubscriptionClient::AbortUpdates(WEAVE_ERROR aErr)
29132913
{
29142914
numPending = mPendingUpdateSet.GetNumItems();
29152915
mPendingUpdateSet.Clear();
2916+
SetPendingSetState(kPendingSetEmpty);
29162917

29172918
numInProgress = mInProgressUpdateList.GetNumItems();
29182919
mInProgressUpdateList.Clear();

0 commit comments

Comments
 (0)