Make TakeScreenshotAsync await on the internal task

This commit is contained in:
smoogipoo
2018-04-13 17:50:59 +09:00
parent 2e5bbe7074
commit 0235eba9de
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ namespace osu.Game.Graphics
private volatile int screenShotTasks; private volatile int screenShotTasks;
public async Task TakeScreenshotAsync() => Task.Run(async () => public async Task TakeScreenshotAsync() => await Task.Run(async () =>
{ {
Interlocked.Increment(ref screenShotTasks); Interlocked.Increment(ref screenShotTasks);