File tree 1 file changed +1
-2
lines changed
src/darwin/Framework/CHIP
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1205,6 +1205,7 @@ - (void)_handleSubscriptionEstablished
1205
1205
// No need to monitor connectivity after subscription establishment
1206
1206
[self _stopConnectivityMonitoring];
1207
1207
1208
+ // reset subscription attempt wait time when subscription succeeds
1208
1209
_lastSubscriptionAttemptWait = 0;
1209
1210
1210
1211
auto initialSubscribeStart = _initialSubscribeStart;
@@ -2476,8 +2477,6 @@ - (void)_setupSubscriptionWithReason:(NSString *)reason
2476
2477
std::lock_guard lock(self->_lock);
2477
2478
2478
2479
// First synchronously change state
2479
-
2480
- // reset subscription attempt wait time when subscription succeeds
2481
2480
if (HadSubscriptionEstablishedOnce(self->_internalDeviceState)) {
2482
2481
[self _changeInternalState:MTRInternalDeviceStateLaterSubscriptionEstablished];
2483
2482
} else {
You can’t perform that action at this time.
0 commit comments