aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/Net/SocketFactory.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-13 16:04:21 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-13 16:04:21 -0500
commit0e9cd51f9c64d4cfad5cb5c7b0ddae6af8d18ac6 (patch)
tree359ef5fb2504ed72e03a51a2e90a1017309143f0 /Emby.Common.Implementations/Net/SocketFactory.cs
parent3c55747cd63fd8a69f02efbe9ac48ce76d373b81 (diff)
update .net core startup
Diffstat (limited to 'Emby.Common.Implementations/Net/SocketFactory.cs')
-rw-r--r--Emby.Common.Implementations/Net/SocketFactory.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Emby.Common.Implementations/Net/SocketFactory.cs b/Emby.Common.Implementations/Net/SocketFactory.cs
index 922b0f3cc..f26137683 100644
--- a/Emby.Common.Implementations/Net/SocketFactory.cs
+++ b/Emby.Common.Implementations/Net/SocketFactory.cs
@@ -23,10 +23,15 @@ namespace Emby.Common.Implementations.Net
/// </summary>
private IPAddress _LocalIP;
- private ILogger _logger;
+ private readonly ILogger _logger;
public SocketFactory(ILogger logger)
{
+ if (logger == null)
+ {
+ throw new ArgumentNullException("logger");
+ }
+
_logger = logger;
_LocalIP = IPAddress.Any;
}