We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cec1f35 commit 6909444Copy full SHA for 6909444
src/darwin/Framework/CHIP/MTRDevice.mm
@@ -669,7 +669,7 @@ - (void)_setDSTOffsets:(NSArray<MTRTimeSynchronizationClusterDSTOffsetStruct *>
669
- (BOOL)_subscriptionsAllowed
670
{
671
os_unfair_lock_assert_owner(&self->_lock);
672
-
+
673
// We should not allow a subscription for device controllers over XPC.
674
return ![_deviceController isKindOfClass:MTRDeviceControllerOverXPC.class];
675
}
@@ -679,9 +679,9 @@ - (void)setDelegate:(id<MTRDeviceDelegate>)delegate queue:(dispatch_queue_t)queu
679
MTR_LOG("%@ setDelegate %@", self, delegate);
680
681
std::lock_guard lock(_lock);
682
683
BOOL setUpSubscription = [self _subscriptionsAllowed];
684
685
// For unit testing only
686
#ifdef DEBUG
687
id testDelegate = delegate;
0 commit comments