mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
Remove unnecessary try-catch block
This commit is contained in:
parent
9d88295ece
commit
6f5fbd7ea1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user