diff options
Diffstat (limited to 'RSSDP')
| -rw-r--r-- | RSSDP/DiscoveredSsdpDevice.cs | 4 | ||||
| -rw-r--r-- | RSSDP/SsdpDeviceLocator.cs | 4 | ||||
| -rw-r--r-- | RSSDP/SsdpDevicePublisher.cs | 13 |
3 files changed, 12 insertions, 9 deletions
diff --git a/RSSDP/DiscoveredSsdpDevice.cs b/RSSDP/DiscoveredSsdpDevice.cs index 66b8bea36..7e70817dd 100644 --- a/RSSDP/DiscoveredSsdpDevice.cs +++ b/RSSDP/DiscoveredSsdpDevice.cs @@ -17,7 +17,6 @@ namespace Rssdp #region Fields - private SsdpRootDevice _Device; private DateTimeOffset _AsAt; #endregion @@ -55,7 +54,6 @@ namespace Rssdp if (_AsAt != value) { _AsAt = value; - _Device = null; } } } @@ -93,4 +91,4 @@ namespace Rssdp #endregion } -}
\ No newline at end of file +} diff --git a/RSSDP/SsdpDeviceLocator.cs b/RSSDP/SsdpDeviceLocator.cs index 6a61a52f3..32289822f 100644 --- a/RSSDP/SsdpDeviceLocator.cs +++ b/RSSDP/SsdpDeviceLocator.cs @@ -124,7 +124,7 @@ namespace Rssdp.Infrastructure { await SearchAsync(CancellationToken.None).ConfigureAwait(false); } - catch (Exception ex) + catch (Exception) { } @@ -621,4 +621,4 @@ namespace Rssdp.Infrastructure #endregion } -}
\ No newline at end of file +} diff --git a/RSSDP/SsdpDevicePublisher.cs b/RSSDP/SsdpDevicePublisher.cs index 8d57deb5e..cee9b7f91 100644 --- a/RSSDP/SsdpDevicePublisher.cs +++ b/RSSDP/SsdpDevicePublisher.cs @@ -310,11 +310,16 @@ namespace Rssdp.Infrastructure try { - await _CommsServer.SendMessage(System.Text.Encoding.UTF8.GetBytes(message), endPoint, receivedOnlocalIpAddress, cancellationToken).ConfigureAwait(false); + await _CommsServer.SendMessage( + System.Text.Encoding.UTF8.GetBytes(message), + endPoint, + receivedOnlocalIpAddress, + cancellationToken) + .ConfigureAwait(false); } - catch (Exception ex) + catch (Exception) { - + } //WriteTrace(String.Format("Sent search response to " + endPoint.ToString()), device); @@ -558,4 +563,4 @@ namespace Rssdp.Infrastructure } } } -}
\ No newline at end of file +} |
