aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Dlna/Main
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Dlna/Main')
-rw-r--r--MediaBrowser.Dlna/Main/DlnaEntryPoint.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs b/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs
index af03f325f..0ab41020e 100644
--- a/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs
+++ b/MediaBrowser.Dlna/Main/DlnaEntryPoint.cs
@@ -343,7 +343,8 @@ namespace MediaBrowser.Dlna.Main
if (_Publisher != null)
{
var devices = _Publisher.Devices.ToList();
- foreach (var device in devices)
+
+ Parallel.ForEach(devices, device =>
{
try
{
@@ -353,7 +354,18 @@ namespace MediaBrowser.Dlna.Main
{
_logger.ErrorException("Error sending bye bye", ex);
}
- }
+ });
+ //foreach (var device in devices)
+ //{
+ // try
+ // {
+ // _Publisher.RemoveDevice(device);
+ // }
+ // catch (Exception ex)
+ // {
+ // _logger.ErrorException("Error sending bye bye", ex);
+ // }
+ //}
_Publisher.Dispose();
}