1
0
Fork 0

parent isn't set until after istream completes

This commit is contained in:
Kevin Matz 2021-09-01 12:27:02 -04:00
parent e0d142797a
commit 33b1d4eda7
1 changed files with 0 additions and 12 deletions

View File

@ -178,18 +178,6 @@ void Pdu::iStream(ACN::PDU::Stream stream)
ACN::PDU::Pdu::iStream(stream); // flags, length, and vector
createHeader<discovery_list_header>(); // header
createData<discovery_list_data>(); // data
if (data_)
{
auto data = std::static_pointer_cast<discovery_list_data>(data_);
auto root_header = std::static_pointer_cast<ACN::RLP::rlp_header>(parent_->parent()->header());
auto frame_header = std::static_pointer_cast<EXTENDED::discovery_header>(parent_->header());
for ( auto & f : data->found )
{
f.source = root_header->cid;
f.description = frame_header->source_name;
}
}
}