Skip to content

Commit b8a0e76

Browse files
authored
[Matter.framework] When the device is entering suspended state and at… (#35973)
1 parent 6621548 commit b8a0e76

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/darwin/Framework/CHIP/MTRDevice_Concrete.mm

+4-2
Original file line numberDiff line numberDiff line change
@@ -2404,8 +2404,10 @@ - (void)_setupSubscriptionWithReason:(NSString *)reason
24042404
NSNumber * _Nullable retryDelay) {
24052405
if (error != nil) {
24062406
MTR_LOG_ERROR("%@ getSessionForNode error %@", self, error);
2407-
[self _handleSubscriptionError:error];
2408-
[self _handleSubscriptionReset:retryDelay];
2407+
[self->_deviceController asyncDispatchToMatterQueue:^{
2408+
[self _handleSubscriptionError:error];
2409+
[self _handleSubscriptionReset:retryDelay];
2410+
} errorHandler:nil];
24092411
return;
24102412
}
24112413

0 commit comments

Comments
 (0)