diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-11-27 14:08:55 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-11-27 14:08:55 -0500 |
| commit | 808f2f3095c18c18be7a6fd957ddeda2c4c97693 (patch) | |
| tree | 075924563ebee092d3359b219e9e10841b9c3a4e /RSSDP/SsdpDevice.cs | |
| parent | 58a7829ecd773dbc3c875d3f0d4438b847fd54b5 (diff) | |
update rssdp
Diffstat (limited to 'RSSDP/SsdpDevice.cs')
| -rw-r--r-- | RSSDP/SsdpDevice.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/RSSDP/SsdpDevice.cs b/RSSDP/SsdpDevice.cs index cda11f0a4..65d9be139 100644 --- a/RSSDP/SsdpDevice.cs +++ b/RSSDP/SsdpDevice.cs @@ -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(); |
