aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/SsdpDevicePublisher.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-09-24 19:08:39 +0300
committerGitHub <noreply@github.com>2019-09-24 19:08:39 +0300
commitac9dfa8e93106d907bbf78fe2350adfa47c76cec (patch)
tree451a0af637b7114439b85ce7878ff82b43281cc8 /RSSDP/SsdpDevicePublisher.cs
parentb086f6d330503a055e1b073cdb3847c825839da3 (diff)
parentc9820d30edf1cb8fa99a52ec72b6571d6d4506f7 (diff)
Merge pull request #1775 from Bond-009/fixes
Fix multiple mistakes and warnings
Diffstat (limited to 'RSSDP/SsdpDevicePublisher.cs')
-rw-r--r--RSSDP/SsdpDevicePublisher.cs4
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();
}
}