Skip to content

Commit 9fb264a

Browse files
committedAug 6, 2024
Addressed PR review - moved code comment to correct place
1 parent 80469f6 commit 9fb264a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/darwin/Framework/CHIP/MTRDevice.mm

+1-2
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,7 @@ - (void)_handleSubscriptionEstablished
12051205
// No need to monitor connectivity after subscription establishment
12061206
[self _stopConnectivityMonitoring];
12071207

1208+
// reset subscription attempt wait time when subscription succeeds
12081209
_lastSubscriptionAttemptWait = 0;
12091210

12101211
auto initialSubscribeStart = _initialSubscribeStart;
@@ -2476,8 +2477,6 @@ - (void)_setupSubscriptionWithReason:(NSString *)reason
24762477
std::lock_guard lock(self->_lock);
24772478

24782479
// First synchronously change state
2479-
2480-
// reset subscription attempt wait time when subscription succeeds
24812480
if (HadSubscriptionEstablishedOnce(self->_internalDeviceState)) {
24822481
[self _changeInternalState:MTRInternalDeviceStateLaterSubscriptionEstablished];
24832482
} else {

0 commit comments

Comments
 (0)