diff --git a/src/app/BufferedReadCallback.h b/src/app/BufferedReadCallback.h index ed65646ec553e2..16cc76db7773f6 100644 --- a/src/app/BufferedReadCallback.h +++ b/src/app/BufferedReadCallback.h @@ -79,6 +79,14 @@ class BufferedReadCallback : public ReadClient::Callback void OnEventData(const EventHeader & aEventHeader, TLV::TLVReader * apData, const StatusIB * apStatus) override { + if (mDataBufferingError != CHIP_NO_ERROR) + { + ChipLogError(DataManagement, + "Skipping EventData: (%u, " ChipLogFormatMEI ", " ChipLogFormatMEI ") '%" CHIP_ERROR_FORMAT "'", + aEventHeader.mEndpointId, ChipLogValueMEI(aEventHeader.mClusterId), ChipLogValueMEI(aEventHeader.mEventId), + mDataBufferingError.Format()); + return; + } return mCallback.OnEventData(aEventHeader, apData, apStatus); }