diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-09-20 12:42:08 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-09-23 20:32:44 +0200 |
| commit | c9820d30edf1cb8fa99a52ec72b6571d6d4506f7 (patch) | |
| tree | 9a479536e6d18d3a2e9a8d253c4d3846d3d2aceb /RSSDP | |
| parent | b8fd6a7ec3e49298ffacc6da96d59ae03a593cd3 (diff) | |
Fix multiple mistakes and warnings
Diffstat (limited to 'RSSDP')
| -rw-r--r-- | RSSDP/SsdpDevicePublisher.cs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/RSSDP/SsdpDevicePublisher.cs b/RSSDP/SsdpDevicePublisher.cs index 7f3e56394..53b740052 100644 --- a/RSSDP/SsdpDevicePublisher.cs +++ b/RSSDP/SsdpDevicePublisher.cs @@ -86,7 +86,6 @@ namespace Rssdp.Infrastructure ThrowIfDisposed(); - var minCacheTime = TimeSpan.Zero; bool wasAdded = false; lock (_Devices) { @@ -94,7 +93,6 @@ namespace Rssdp.Infrastructure { _Devices.Add(device); wasAdded = true; - minCacheTime = GetMinimumNonZeroCacheLifetime(); } } @@ -120,14 +118,12 @@ namespace Rssdp.Infrastructure if (device == null) throw new ArgumentNullException(nameof(device)); bool wasRemoved = false; - var minCacheTime = TimeSpan.Zero; lock (_Devices) { if (_Devices.Contains(device)) { _Devices.Remove(device); wasRemoved = true; - minCacheTime = GetMinimumNonZeroCacheLifetime(); } } |
