File tree 1 file changed +3
-3
lines changed
src/darwin/Framework/CHIP
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,9 @@ typedef NS_ENUM(NSUInteger, MTRInternalDeviceState) {
143
143
// Utility methods for working with MTRInternalDeviceState, located near the
144
144
// enum so it's easier to notice that they need to stay in sync.
145
145
namespace {
146
- bool NoInitialSubscriptionYet (MTRInternalDeviceState state)
146
+ bool HadSubscriptionEstablishedOnce (MTRInternalDeviceState state)
147
147
{
148
- return state < MTRInternalDeviceStateInitalSubscriptionEstablished;
148
+ return state >= MTRInternalDeviceStateInitalSubscriptionEstablished;
149
149
}
150
150
151
151
bool NeedToStartSubscriptionSetup (MTRInternalDeviceState state)
@@ -815,7 +815,7 @@ - (void)_markDeviceAsUnreachableIfNeverSubscribed
815
815
{
816
816
os_unfair_lock_assert_owner (&self->_lock );
817
817
818
- if (! NoInitialSubscriptionYet (_internalDeviceState)) {
818
+ if (HadSubscriptionEstablishedOnce (_internalDeviceState)) {
819
819
return ;
820
820
}
821
821
You can’t perform that action at this time.
0 commit comments