1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Fix HandleFrame crashing when not playing

This commit is contained in:
smoogipoo 2021-05-31 10:02:02 +09:00
parent be0605450b
commit bca8a9ea53

View File

@ -235,6 +235,9 @@ namespace osu.Game.Online.Spectator
{
Debug.Assert(ThreadSafety.IsUpdateThread);
if (!IsPlaying)
return;
if (frame is IConvertibleReplayFrame convertible)
pendingFrames.Enqueue(convertible.ToLegacy(currentBeatmap));