diff options
| author | cvium <clausvium@gmail.com> | 2021-05-24 00:30:41 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-05-24 00:30:41 +0200 |
| commit | 42a2cc1747c7859c63334a7a45792e0af1410e1a (patch) | |
| tree | 16e9587342a83948ac6742f05518d9a31836c235 /RSSDP/SsdpCommunicationsServer.cs | |
| parent | db9d3b8653d865459e5df5a2fba18f0c9462dbb6 (diff) | |
Remove some unnecessary allocations
Diffstat (limited to 'RSSDP/SsdpCommunicationsServer.cs')
| -rw-r--r-- | RSSDP/SsdpCommunicationsServer.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/RSSDP/SsdpCommunicationsServer.cs b/RSSDP/SsdpCommunicationsServer.cs index f448ad38b..e49c0e77b 100644 --- a/RSSDP/SsdpCommunicationsServer.cs +++ b/RSSDP/SsdpCommunicationsServer.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; @@ -42,7 +43,7 @@ namespace Rssdp.Infrastructure private HttpResponseParser _ResponseParser; private readonly ILogger _logger; private ISocketFactory _SocketFactory; - private readonly INetworkManager _networkManager; + private readonly INetworkManager _networkManager; private int _LocalPort; private int _MulticastTtl; @@ -68,7 +69,7 @@ namespace Rssdp.Infrastructure INetworkManager networkManager, ILogger logger, bool enableMultiSocketBinding) : this(socketFactory, 0, SsdpConstants.SsdpDefaultMulticastTimeToLive, networkManager, logger, enableMultiSocketBinding) { - + } /// <summary> @@ -358,7 +359,7 @@ namespace Rssdp.Infrastructure { // Not support IPv6 right now continue; - } + } try { |
