diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-04 19:57:21 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-04 19:57:21 -0400 |
| commit | 25312d7d03af665818cfd2cee2edb549e0e940f2 (patch) | |
| tree | 2220b08d58fb36b0b581a60cdc167d72e628b916 /Emby.Common.Implementations/Net | |
| parent | 67ad1db6b77b2c2cb6d81c22808d99564a5f3ebc (diff) | |
add udp error handling
Diffstat (limited to 'Emby.Common.Implementations/Net')
| -rw-r--r-- | Emby.Common.Implementations/Net/UdpSocket.cs | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/Emby.Common.Implementations/Net/UdpSocket.cs b/Emby.Common.Implementations/Net/UdpSocket.cs index 6afb071ae..d999d3fe8 100644 --- a/Emby.Common.Implementations/Net/UdpSocket.cs +++ b/Emby.Common.Implementations/Net/UdpSocket.cs @@ -102,29 +102,10 @@ namespace Emby.Common.Implementations.Net { taskSource.TrySetException(ex); } - catch (ObjectDisposedException ex) - { - taskSource.TrySetException(ex); - } - catch (InvalidOperationException ex) - { - taskSource.TrySetException(ex); - } - catch (SecurityException ex) - { - taskSource.TrySetException(ex); - } + }, null); } - catch (SocketException ex) - { - taskSource.TrySetException(ex); - } - catch (ObjectDisposedException ex) - { - taskSource.TrySetException(ex); - } - catch (SecurityException ex) + catch (Exception ex) { taskSource.TrySetException(ex); } |
