We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab7be79 commit be3e298Copy full SHA for be3e298
src/darwin/Framework/CHIP/MTRDevice.mm
@@ -682,7 +682,8 @@ - (void)setDelegate:(id<MTRDeviceDelegate>)delegate queue:(dispatch_queue_t)queu
682
683
BOOL setUpSubscription = [self _subscriptionsAllowed];
684
685
- // For unit testing only
+ // For unit testing only. If this ever changes to not being for unit testing purposes,
686
+ // we would need to move the code outside of where we acquire the lock above.
687
#ifdef DEBUG
688
id testDelegate = delegate;
689
if ([testDelegate respondsToSelector:@selector(unitTestShouldSetUpSubscriptionForDevice:)]) {
0 commit comments