1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 13:07:24 +08:00
osu-lazer/osu.Game/Screens/OnlinePlay/Multiplayer
Bartłomiej Dach 7fbd47e9ee
Fix MultiplayerMatchSubScreen erroneously pushing exit dialog on API failure
If `IAPIProvider.State` changes from `Online` at any point when being on
an `OnlinePlayScreen`, it will be forcefully exited from. However,
`MultiplayerMatchSubScreen` had local logic that suppressed the exit in
order to show a confirmation dialog.

The problem is, that in the suppression logic,
`MultiplayerMatchSubScreen` was checking
`MultiplayerClient.IsConnected`, which is a SignalR flag, and was not
checking `IAPIAccess.State`, which is maintained separately. Due to
differing timeouts and failure thresholds, it is not impossible to have
`MultiplayerClient.IsConnected == true` but `IAPIAccess.State !=
APIState.Online`.

In such a case, the match subscreen would wrongly consider itself to be
still online and due to that, push useless confirmation dialogs, while
being in the process of being forcefully exited. This then caused the
dialog to cause a crash, as it was calling `.Exit()` on the screen which
would already have been exited by that point, by the force-exit flow.
2023-07-16 19:56:22 +02:00
..
Match Rename class and key to better match expectations 2023-06-26 13:38:34 +09:00
Participants Add visual display in participants list when availability is still being established 2023-06-28 16:02:46 +09:00
Spectate Manual fixes to reduce warnings to zero 2023-06-24 01:52:53 +09:00
CreateMultiplayerMatchButton.cs Partial everything 2022-11-27 00:00:27 +09:00
GameplayChatDisplay.cs Partial everything 2022-11-27 00:00:27 +09:00
GameplayMatchScoreDisplay.cs Automated pass 2023-06-24 01:00:03 +09:00
Multiplayer.cs Manual fixes to reduce warnings to zero 2023-06-24 01:52:53 +09:00
MultiplayerLoungeSubScreen.cs Partial everything 2022-11-27 00:00:27 +09:00
MultiplayerMatchSongSelect.cs Partial everything 2022-11-27 00:00:27 +09:00
MultiplayerMatchSubScreen.cs Fix MultiplayerMatchSubScreen erroneously pushing exit dialog on API failure 2023-07-16 19:56:22 +02:00
MultiplayerPlayer.cs Partial everything 2022-11-27 00:00:27 +09:00
MultiplayerPlayerLoader.cs Partial everything 2022-11-27 00:00:27 +09:00
MultiplayerResultsScreen.cs Automated pass 2023-06-24 01:00:03 +09:00
MultiplayerRoomComposite.cs Partial everything 2022-11-27 00:00:27 +09:00
MultiplayerRoomManager.cs Partial everything 2022-11-27 00:00:27 +09:00
MultiplayerRoomSounds.cs Partial everything 2022-11-27 00:00:27 +09:00
MultiplayerTeamResultsScreen.cs Partial everything 2022-11-27 00:00:27 +09:00