parent isn't set until after istream completes
This commit is contained in:
parent
e0d142797a
commit
33b1d4eda7
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue