From 22093c9e8fe15691cca79795acc2616a8b7ec4ff Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Sat, 15 Dec 2018 19:53:09 +0100 Subject: Removed some warnings --- RSSDP/DiscoveredSsdpDevice.cs | 4 +--- RSSDP/SsdpDeviceLocator.cs | 4 ++-- RSSDP/SsdpDevicePublisher.cs | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'RSSDP') diff --git a/RSSDP/DiscoveredSsdpDevice.cs b/RSSDP/DiscoveredSsdpDevice.cs index 66b8bea36a..7e70817ddf 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 6a61a52f3e..32289822f9 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 8d57deb5ef..2646023e89 100644 --- a/RSSDP/SsdpDevicePublisher.cs +++ b/RSSDP/SsdpDevicePublisher.cs @@ -312,7 +312,7 @@ namespace Rssdp.Infrastructure { await _CommsServer.SendMessage(System.Text.Encoding.UTF8.GetBytes(message), endPoint, receivedOnlocalIpAddress, cancellationToken).ConfigureAwait(false); } - catch (Exception ex) + catch (Exception) { } @@ -558,4 +558,4 @@ namespace Rssdp.Infrastructure } } } -} \ No newline at end of file +} -- cgit v1.2.3 From cb8cd1ff55d86317032365df0b6730815d8a8243 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Sun, 16 Dec 2018 00:48:40 +0100 Subject: Log exception where possible --- Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs | 8 ++------ RSSDP/SsdpDevicePublisher.cs | 9 +++++++-- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'RSSDP') diff --git a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs index 4716c64b20..620d3bae9e 100644 --- a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs +++ b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs @@ -146,14 +146,10 @@ namespace IsoMounter public Task Mount(string isoPath, CancellationToken cancellationToken) { - LinuxMount mountedISO; - - if (MountISO(isoPath, out mountedISO)) - { + if (MountISO(isoPath, out LinuxMount mountedISO)) { return Task.FromResult(mountedISO); } - else - { + else { throw new IOException(String.Format( "An error occurred trying to mount image [$0].", isoPath diff --git a/RSSDP/SsdpDevicePublisher.cs b/RSSDP/SsdpDevicePublisher.cs index 2646023e89..cee9b7f911 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) { - + } //WriteTrace(String.Format("Sent search response to " + endPoint.ToString()), device); -- cgit v1.2.3