Skip to content

Commit 5423fec

Browse files
[ICD]Set error as CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT if timeout happens during subscription priming stage
1 parent ed1babf commit 5423fec

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/app/ReadClient.cpp

+9-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,15 @@ void ReadClient::OnResponseTimeout(Messaging::ExchangeContext * apExchangeContex
720720
ChipLogError(DataManagement, "Time out! failed to receive report data from Exchange: " ChipLogFormatExchange,
721721
ChipLogValueExchange(apExchangeContext));
722722

723-
Close(CHIP_ERROR_TIMEOUT);
723+
if (mIsPeerLIT)
724+
{
725+
Close(CHIP_ERROR_LIT_SUBSCRIBE_INACTIVE_TIMEOUT);
726+
}
727+
else
728+
{
729+
Close(CHIP_ERROR_TIMEOUT);
730+
}
731+
724732
}
725733

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

0 commit comments

Comments
 (0)