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

Commit a1941f2

Browse files
NoMorePendingEventCbHelper needs to be called when flush empty pending set.
--When application calls FlushUpdate, if no updated item is set, mPendingSetState is kPendingSetEmpty, NoMorePendingEventCbHelper() needs to be called, and notify application there is no more pending updates.
1 parent 9132f4c commit a1941f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3249,6 +3249,11 @@ WEAVE_ERROR SubscriptionClient::FlushUpdate(bool aForce)
32493249
exit:
32503250
UnlockUpdateMutex();
32513251

3252+
if (mPendingSetState == kPendingSetEmpty)
3253+
{
3254+
NoMorePendingEventCbHelper();
3255+
}
3256+
32523257
return err;
32533258
}
32543259

0 commit comments

Comments
 (0)