Cleanup and fixes

This commit is contained in:
Shadowghost
2022-07-21 22:09:54 +02:00
parent ff22f597d2
commit 59a86568d9
6 changed files with 40 additions and 39 deletions

View File

@@ -142,11 +142,7 @@ namespace Rssdp.Infrastructure
if (_BroadcastListenSockets != null)
{
_logger.LogInformation("{0} disposing _BroadcastListenSocket", GetType().Name);
foreach (var socket in _BroadcastListenSockets)
{
socket.Dispose();
}
_BroadcastListenSockets.ForEach(s => s.Dispose());
_BroadcastListenSockets = null;
}
}