1
0
Fork 0

and stream condition checks

This commit is contained in:
Kevin Matz 2021-09-17 09:35:47 -04:00
parent b8a113759b
commit 6cc9f6e025
1 changed files with 4 additions and 2 deletions

View File

@ -280,12 +280,14 @@ void Pdu::iStream(PDU::Stream stream)
auto dataIsAddressList = [this, header] () {
data_ = std::make_shared<address_list>(*header);
data_->iStream(stream_);
if (stream_ && stream_->good())
data_->iStream(stream_);
};
auto dataIsAdddresPairList = [this, header] () {
data_ = std::make_shared<address_pair_list>(*header);
data_->iStream(stream_);
if (stream_ && stream_->good())
data_->iStream(stream_);
};
switch(vector()) {