Mark several long-running tasks as long-running

This commit is contained in:
Dean Herbert
2017-10-25 11:42:55 +09:00
parent 89cc7b7945
commit c765785d00
3 changed files with 4 additions and 3 deletions

View File

@ -272,7 +272,7 @@ namespace osu.Game.Beatmaps
PostNotification?.Invoke(downloadNotification);
// don't run in the main api queue as this is a long-running task.
Task.Run(() => request.Perform(api));
Task.Factory.StartNew(() => request.Perform(api), TaskCreationOptions.LongRunning);
return request;
}