Merge branch 'master' into fix-disabled-set-crash

This commit is contained in:
Dean Herbert
2019-02-27 11:14:42 +09:00
committed by GitHub
26 changed files with 623 additions and 124 deletions

View File

@ -189,7 +189,17 @@ namespace osu.Game.Beatmaps
PostNotification?.Invoke(downloadNotification);
// don't run in the main api queue as this is a long-running task.
Task.Factory.StartNew(() => request.Perform(api), TaskCreationOptions.LongRunning);
Task.Factory.StartNew(() =>
{
try
{
request.Perform(api);
}
catch (Exception e)
{
// no need to handle here as exceptions will filter down to request.Failure above.
}
}, TaskCreationOptions.LongRunning);
BeatmapDownloadBegan?.Invoke(request);
return true;
}