mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Make TakeScreenshotAsync await on the internal task
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user