diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-06-20 16:48:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-20 16:48:48 +0200 |
| commit | beb3896d7fba09e038b45c784273dbea1e48013c (patch) | |
| tree | 55e9c9102f67e11ac0225c25166c2e4caaf012eb /Emby.Server.Implementations/Net/UdpSocket.cs | |
| parent | e8e5208fbd9484a1b37eed5dece524f108886fe0 (diff) | |
| parent | 6556bec646a28d08267f30640125865cf42240d0 (diff) | |
Merge pull request #3390 from telans/fixes
Multiple warning fixes
Diffstat (limited to 'Emby.Server.Implementations/Net/UdpSocket.cs')
| -rw-r--r-- | Emby.Server.Implementations/Net/UdpSocket.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Net/UdpSocket.cs b/Emby.Server.Implementations/Net/UdpSocket.cs index 848f82d85..b51c03446 100644 --- a/Emby.Server.Implementations/Net/UdpSocket.cs +++ b/Emby.Server.Implementations/Net/UdpSocket.cs @@ -37,7 +37,10 @@ namespace Emby.Server.Implementations.Net public UdpSocket(Socket socket, int localPort, IPAddress ip) { - if (socket == null) throw new ArgumentNullException(nameof(socket)); + if (socket == null) + { + throw new ArgumentNullException(nameof(socket)); + } _socket = socket; _localPort = localPort; @@ -103,7 +106,10 @@ namespace Emby.Server.Implementations.Net public UdpSocket(Socket socket, IPEndPoint endPoint) { - if (socket == null) throw new ArgumentNullException(nameof(socket)); + if (socket == null) + { + throw new ArgumentNullException(nameof(socket)); + } _socket = socket; _socket.Connect(endPoint); |
