mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove unnecessary try-catch block
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user