Fix players potentially not displaying in spectator after restart

This commit is contained in:
Salman Ahmed 2022-07-25 04:21:52 +03:00
parent feef16b09b
commit f5a5887669

View File

@ -206,6 +206,11 @@ namespace osu.Game.Online.Spectator
if (!IsPlaying)
return;
// Disposal could be processed late, leading to EndPlaying potentially being called after a future BeginPlaying call.
// Account for this by ensuring the current score matches the score in the provided GameplayState.
if (currentScore != state.Score)
return;
if (pendingFrames.Count > 0)
purgePendingFrames();