correctly accept empty universe discovery lists
This commit is contained in:
parent
db3c782bef
commit
0b5435065e
|
@ -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>());
|
||||
|
|
Loading…
Reference in New Issue