1
0
Fork 0

correctly accept empty universe discovery lists

This commit is contained in:
Kevin Matz 2022-11-14 09:16:53 -05:00
parent db3c782bef
commit 0b5435065e
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,9 @@ void discovery_list_header::oStream(ACN::PDU::Stream stream) const
*/
void discovery_list_data::iStream(ACN::PDU::Stream stream)
{
if (!stream->available())
// empty discovery lists are valid and will have no remaining bytes.
stream->setstate(std::ios_base::eofbit);
while (stream->good())
{
found.emplace_back(std::make_shared<discoveredUniverse>());