mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-02 16:32:07 +01:00
add udp error handling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user