Skip to content

Commit def51ad

Browse files
vivien-appleyyzhong-g
authored andcommitted
[Matter.framework] When the device is entering suspended state and at… (project-chip#35973)
1 parent 623b618 commit def51ad

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)