Skip to content

Commit be3e298

Browse files
committed
Address more comments
1 parent ab7be79 commit be3e298

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/darwin/Framework/CHIP/MTRDevice.mm

+2-1
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,8 @@ - (void)setDelegate:(id<MTRDeviceDelegate>)delegate queue:(dispatch_queue_t)queu
682682

683683
BOOL setUpSubscription = [self _subscriptionsAllowed];
684684

685-
// For unit testing only
685+
// 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.
686687
#ifdef DEBUG
687688
id testDelegate = delegate;
688689
if ([testDelegate respondsToSelector:@selector(unitTestShouldSetUpSubscriptionForDevice:)]) {

0 commit comments

Comments
 (0)