1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 15:17:44 +08:00
osu-lazer/osu.Game/Screens/OnlinePlay
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
..
Components Increase the minimum size of the scroll bar 2023-07-02 00:04:56 +09:00
Lounge Automated pass 2023-06-24 01:00:03 +09:00
Match Fix some more missed CI inspections 2023-06-24 17:11:38 +02:00
Multiplayer Fix MultiplayerMatchSubScreen erroneously pushing exit dialog on API failure 2023-07-16 19:56:22 +02:00
Playlists Automated pass 2023-06-24 01:00:03 +09:00
DrawableRoomPlaylist.cs Fix playlist items not animating when rearranging 2023-01-03 11:10:02 -08:00
DrawableRoomPlaylistItem.cs Partial everything 2022-11-27 00:00:27 +09:00
FooterButtonFreeMods.cs Automated pass 2023-06-24 01:00:03 +09:00
FreeModSelectOverlay.cs Fix some code layout and NRT some classes 2023-06-19 01:03:43 +09:00
Header.cs Partial everything 2022-11-27 00:00:27 +09:00
IOnlinePlaySubScreen.cs Automated pass 2023-06-24 01:00:03 +09:00
IRoomManager.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OngoingOperationTracker.cs Partial everything 2022-11-27 00:00:27 +09:00
OnlinePlayComposite.cs Partial everything 2022-11-27 00:00:27 +09:00
OnlinePlayScreen.cs Apply same comment & reworded condition to suspend too 2023-05-30 21:54:56 +02:00
OnlinePlaySongSelect.cs Enable nullability for song select 2023-01-13 00:52:14 +01:00
OnlinePlaySubScreen.cs Partial everything 2022-11-27 00:00:27 +09:00
OnlinePlaySubScreenStack.cs Manual fixes to reduce warnings to zero 2023-06-24 01:52:53 +09:00