mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +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);
|
currentDownloads.Add(request);
|
||||||
PostNotification?.Invoke(notification);
|
PostNotification?.Invoke(notification);
|
||||||
|
|
||||||
Task.Factory.StartNew(() =>
|
Task.Factory.StartNew(() => request.Perform(api), TaskCreationOptions.LongRunning);
|
||||||
{
|
|
||||||
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);
|
|
||||||
|
|
||||||
DownloadBegan?.Invoke(request);
|
DownloadBegan?.Invoke(request);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user