Skip to content

Commit 1b43ecf

Browse files
jtung-applegmarcosb
authored andcommitted
[Darwin] MTRDevice subscription onDone callback needs to acquire lock (project-chip#37675)
1 parent 8e37ee8 commit 1b43ecf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/darwin/Framework/CHIP/MTRDevice_Concrete.mm

+1
Original file line numberDiff line numberDiff line change
@@ -2887,6 +2887,7 @@ - (void)_setupSubscriptionWithReason:(NSString *)reason
28872887
[matterCPPObjectsHolder setReadClient:nullptr subscriptionCallback:nullptr];
28882888

28892889
// OnDone
2890+
std::lock_guard lock(self->_lock);
28902891
[self _doHandleSubscriptionReset:nil];
28912892
},
28922893
^(void) {

0 commit comments

Comments
 (0)