diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-03-17 16:23:34 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-03-17 16:23:34 -0400 |
| commit | c9ee7633caacb548fd54c33c7c9df1be29b71d29 (patch) | |
| tree | 5d820adf0ec9a243a9c497af784a46adbebb5fb1 /Emby.Common.Implementations/Net/SocketFactory.cs | |
| parent | db904832388278a36d5f1b1e7c1609931694e9e7 (diff) | |
embed recording button into video player
Diffstat (limited to 'Emby.Common.Implementations/Net/SocketFactory.cs')
| -rw-r--r-- | Emby.Common.Implementations/Net/SocketFactory.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/Net/SocketFactory.cs b/Emby.Common.Implementations/Net/SocketFactory.cs index 0f4306a6b..1fd367afb 100644 --- a/Emby.Common.Implementations/Net/SocketFactory.cs +++ b/Emby.Common.Implementations/Net/SocketFactory.cs @@ -52,6 +52,18 @@ namespace Emby.Common.Implementations.Net { throw new SocketCreateException(ex.SocketErrorCode.ToString(), ex); } + catch (ArgumentException ex) + { + if (dualMode) + { + // Mono for BSD incorrectly throws ArgumentException instead of SocketException + throw new SocketCreateException("AddressFamilyNotSupported", ex); + } + else + { + throw; + } + } } public ISocket CreateTcpSocket(IpAddressInfo remoteAddress, int remotePort) |
