Skip to content

Commit

Permalink
[ICD]Set error as CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT if timeou…
Browse files Browse the repository at this point in the history
…t happens during subscription priming stage
  • Loading branch information
yunhanw-google committed Feb 8, 2025
1 parent ed1babf commit 5423fec
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app/ReadClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,15 @@ void ReadClient::OnResponseTimeout(Messaging::ExchangeContext * apExchangeContex
ChipLogError(DataManagement, "Time out! failed to receive report data from Exchange: " ChipLogFormatExchange,
ChipLogValueExchange(apExchangeContext));

Close(CHIP_ERROR_TIMEOUT);
if (mIsPeerLIT)
{
Close(CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT);
}
else
{
Close(CHIP_ERROR_TIMEOUT);
}

}

CHIP_ERROR ReadClient::ReadICDOperatingModeFromAttributeDataIB(TLV::TLVReader && aReader, PeerType & aType)
Expand Down

0 comments on commit 5423fec

Please sign in to comment.