File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -2185,14 +2185,10 @@ bool InteractionModelEngine::HasSubscriptionsToResume()
2185
2185
void InteractionModelEngine::DecrementNumSubscriptionsToResume ()
2186
2186
{
2187
2187
VerifyOrReturn (mNumOfSubscriptionsToResume > 0 );
2188
- #if CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
2189
- VerifyOrDie (mICDManager );
2190
- #endif // CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
2191
-
2192
2188
mNumOfSubscriptionsToResume --;
2193
2189
2194
2190
#if CHIP_CONFIG_ENABLE_ICD_CIP && !CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
2195
- if (!mNumOfSubscriptionsToResume )
2191
+ if (mICDManager && !mNumOfSubscriptionsToResume )
2196
2192
{
2197
2193
mICDManager ->SetBootUpResumeSubscriptionExecuted ();
2198
2194
}
Original file line number Diff line number Diff line change @@ -149,8 +149,11 @@ CHIP_ERROR DnssdServer::SetEphemeralDiscriminator(Optional<uint16_t> discriminat
149
149
template <class AdvertisingParams >
150
150
void DnssdServer::AddICDKeyToAdvertisement (AdvertisingParams & advParams)
151
151
{
152
- VerifyOrDieWithMsg (mICDManager != nullptr , Discovery,
153
- " Invalid pointer to the ICDManager which is required for the LIT operating mode" );
152
+ if (mICDManager == nullptr )
153
+ {
154
+ ChipLogError (Discovery, " Invalid pointer to the ICDManager which is required for adding Dnssd advertisement key" );
155
+ return ;
156
+ }
154
157
155
158
Dnssd::ICDModeAdvertise ICDModeToAdvertise = Dnssd::ICDModeAdvertise::kNone ;
156
159
// Only advertise the ICD key if the device can operate as a LIT
You can’t perform that action at this time.
0 commit comments