Skip to content

Commit d11e93b

Browse files
authored
[Darwin] MTRDevice subscription onDone callback needs to acquire lock (#37675)
1 parent e1ca08f commit d11e93b

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)