Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues switching to new beatmap in multiplayer spectator #24438

Merged
merged 4 commits into from
Aug 1, 2023

Conversation

peppy
Copy link
Member

@peppy peppy commented Aug 1, 2023

Fixes two separate issues (one hard crash, one flow break).

See individual commit messages for further details.

I've tested the case without unit test coverage on production multiple times using the following steps:

  • Spectate
  • Wait for beatmap to finish but don't have the next beatmap downloaded
  • Wait for next beatmap to be started by room

Game should return to lobby with the fix.

…narios

In some scenarios, multiplayer spectator would not tick over to the next
beatmap.

Here's an example:

- Room has two items queued
- Local user starts download of both
- First beatmap starts and download is complete
- First beatmap ends (spectating is active)
- Second beatmap starts but download is not complete

In this scenario, the local client will get stuck at the spectator
screen due to the `onLoadRequested`-invoked screen change being early
exited.

It would require manual recovery (clicking back button) to return to a
sane state.
@bdach bdach enabled auto-merge August 1, 2023 17:04
@bdach bdach merged commit dc9c68b into ppy:master Aug 1, 2023
8 of 10 checks passed
@peppy peppy deleted the multi-spectator-flow-fixes branch August 2, 2023 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants