You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If subscription had reset since this handler was scheduled, do not execute "established" logic below
1105
+
if (!HaveSubscriptionEstablishedRightNow(_internalDeviceState)) {
1106
+
MTR_LOG("%@ _handleSubscriptionEstablished run with internal state %lu - skipping subscription establishment logic", self, static_cast<unsigned long>(_internalDeviceState));
1107
+
return;
1114
1108
}
1115
1109
1116
-
[self_changeState:MTRDeviceStateReachable];
1110
+
// We have completed the subscription work - remove from the subscription pool.
1111
+
[self _clearSubscriptionPoolWork];
1117
1112
1118
1113
// No need to monitor connectivity after subscription establishment
1119
1114
[self _stopConnectivityMonitoring];
1120
1115
1116
+
// reset subscription attempt wait time when subscription succeeds
1117
+
_lastSubscriptionAttemptWait = 0;
1118
+
1121
1119
auto initialSubscribeStart = _initialSubscribeStart;
1122
1120
// We no longer need to track subscribe latency for this device.
0 commit comments