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
1192
+
if (!HaveSubscriptionEstablishedRightNow(_internalDeviceState)) {
1193
+
MTR_LOG("%@ _handleSubscriptionEstablished run with internal state %lu - skipping subscription establishment logic", self, static_cast<unsigned long>(_internalDeviceState));
1194
+
return;
1206
1195
}
1207
1196
1208
-
[self _changeState:MTRDeviceStateReachable];
1197
+
// We have completed the subscription work - remove from the subscription pool.
1198
+
[self _clearSubscriptionPoolWork];
1209
1199
1210
1200
// No need to monitor connectivity after subscription establishment
1211
1201
[self _stopConnectivityMonitoring];
1212
1202
1203
+
// reset subscription attempt wait time when subscription succeeds
1204
+
_lastSubscriptionAttemptWait = 0;
1205
+
1213
1206
auto initialSubscribeStart = _initialSubscribeStart;
1214
1207
// We no longer need to track subscribe latency for this device.
0 commit comments