aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2023-10-11 11:49:22 -0400
committerPatrick Barron <barronpm@gmail.com>2023-10-11 11:49:48 -0400
commit5b51645381b1b657aa64a37efffe34c76042ab51 (patch)
treeb0fc543e25b9a7f5ba71ccc85ce8d8a8be423f49
parent2e1b8ea62d92263d087cbc8996886cdecc4b1705 (diff)
Don't manually dispose DeviceDiscovery
The lifetime of DeviceDiscovery is managed by DI
-rw-r--r--Emby.Dlna/Main/DlnaEntryPoint.cs14
1 files changed, 0 insertions, 14 deletions
diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.cs
index 06c39ecca..82faa45b3 100644
--- a/Emby.Dlna/Main/DlnaEntryPoint.cs
+++ b/Emby.Dlna/Main/DlnaEntryPoint.cs
@@ -188,19 +188,6 @@ namespace Emby.Dlna.Main
}
}
- private void DisposeDeviceDiscovery()
- {
- try
- {
- _logger.LogInformation("Disposing DeviceDiscovery");
- ((DeviceDiscovery)_deviceDiscovery).Dispose();
- }
- catch (Exception ex)
- {
- _logger.LogError(ex, "Error stopping device discovery");
- }
- }
-
public void StartDevicePublisher(Configuration.DlnaOptions options)
{
if (_publisher is not null)
@@ -399,7 +386,6 @@ namespace Emby.Dlna.Main
DisposeDevicePublisher();
DisposePlayToManager();
- DisposeDeviceDiscovery();
if (_communicationsServer is not null)
{