diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2022-07-21 22:09:54 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2022-07-21 22:09:54 +0200 |
| commit | 59a86568d9539245dee30cf3a33ef6beb31f4bba (patch) | |
| tree | 2817415bfa45f645146b62875de61bf980c501c3 /RSSDP/SsdpCommunicationsServer.cs | |
| parent | ff22f597d219b74ce392e4bbbaf1123e5a269f99 (diff) | |
Cleanup and fixes
Diffstat (limited to 'RSSDP/SsdpCommunicationsServer.cs')
| -rw-r--r-- | RSSDP/SsdpCommunicationsServer.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs index e6c0a4403..92c9c83c0 100644 --- a/RSSDP/SsdpCommunicationsServer.cs +++ b/RSSDP/SsdpCommunicationsServer.cs @@ -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; } } |
