1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Remove unnecessary try-catch block

This commit is contained in:
naoey 2019-06-25 18:28:59 +05:30
parent 9d88295ece
commit 6f5fbd7ea1
No known key found for this signature in database
GPG Key ID: 670DA9BE3DF7EE60

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);
}