Remove unnecessary try-catch block

This commit is contained in:
naoey
2019-06-25 18:28:59 +05:30
parent 9d88295ece
commit 6f5fbd7ea1

View File

@ -107,18 +107,7 @@ namespace osu.Game.Database
currentDownloads.Add(request);
PostNotification?.Invoke(notification);
Task.Factory.StartNew(() =>
{
try
{
request.Perform(api);
}
catch (Exception e)
{
// 404s (and maybe other failures) don't fire request.Failure so for now they handled here as well
handleRequestFailure(request, notification, e);
}
}, TaskCreationOptions.LongRunning);
Task.Factory.StartNew(() => request.Perform(api), TaskCreationOptions.LongRunning);
DownloadBegan?.Invoke(request);
}