update rssdp

This commit is contained in:
Luke Pulverenti
2017-11-27 14:08:55 -05:00
parent 58a7829ecd
commit 808f2f3095
3 changed files with 21 additions and 6 deletions

View File

@@ -743,6 +743,14 @@ namespace Rssdp
private static void AddCustomProperty(XmlReader reader, SsdpDevice device)
{
// If the property is an empty element, there is no value to read
// Advance the reader and return
if (reader.IsEmptyElement)
{
reader.Read();
return;
}
var newProp = new SsdpDeviceProperty() { Namespace = reader.Prefix, Name = reader.LocalName };
int depth = reader.Depth;
reader.Read();