Don't allow throwing System.Exception (#8378)

This commit is contained in:
Bond-009
2022-09-12 01:56:41 +02:00
committed by GitHub
parent d2e18547b1
commit 2d57e71b44
5 changed files with 15 additions and 14 deletions

View File

@@ -96,7 +96,7 @@ namespace Emby.Server.Implementations.Net
}
else
{
tcs.TrySetException(new Exception("SocketError: " + e.SocketError));
tcs.TrySetException(new SocketException((int)e.SocketError));
}
}
}
@@ -114,7 +114,7 @@ namespace Emby.Server.Implementations.Net
}
else
{
tcs.TrySetException(new Exception("SocketError: " + e.SocketError));
tcs.TrySetException(new SocketException((int)e.SocketError));
}
}
}