mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 06:22:55 +08:00
Fix HandleFrame crashing when not playing
This commit is contained in:
parent
be0605450b
commit
bca8a9ea53
@ -235,6 +235,9 @@ namespace osu.Game.Online.Spectator
|
|||||||
{
|
{
|
||||||
Debug.Assert(ThreadSafety.IsUpdateThread);
|
Debug.Assert(ThreadSafety.IsUpdateThread);
|
||||||
|
|
||||||
|
if (!IsPlaying)
|
||||||
|
return;
|
||||||
|
|
||||||
if (frame is IConvertibleReplayFrame convertible)
|
if (frame is IConvertibleReplayFrame convertible)
|
||||||
pendingFrames.Enqueue(convertible.ToLegacy(currentBeatmap));
|
pendingFrames.Enqueue(convertible.ToLegacy(currentBeatmap));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user