mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Throw on Wait
failure in a few remaining cases
This commit is contained in:
@ -103,7 +103,9 @@ namespace osu.Game.Graphics
|
||||
framesWaitedEvent.Set();
|
||||
}, 10, true);
|
||||
|
||||
framesWaitedEvent.Wait(1000);
|
||||
if (!framesWaitedEvent.Wait(1000))
|
||||
throw new TimeoutException("Screenshot data did not arrive in a timely fashion");
|
||||
|
||||
waitDelegate.Cancel();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user