Skip to content

Commit

Permalink
Merge pull request #29701 from peppy/fix-gc-fuck-fuck-fuck
Browse files Browse the repository at this point in the history
Fix high performance session potentially getting stuck after multiplayer spectator
  • Loading branch information
bdach committed Sep 5, 2024
2 parents 446c810 + 86a06c7 commit 3a3a912
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Game/Screens/Play/PlayerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,9 @@ protected override void Dispose(bool isDisposing)
// if the player never got pushed, we should explicitly dispose it.
DisposalTask = LoadTask?.ContinueWith(_ => CurrentPlayer?.Dispose());
}

highPerformanceSession?.Dispose();
highPerformanceSession = null;
}

#endregion
Expand Down

0 comments on commit 3a3a912

Please sign in to comment.