mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Don't poll while in room
Fixes timeout in `TestJoinRoomWithoutPassword`, because the 'server' returns out-of-date data while the `MatchSubScreen` has possible not been entered yet (and thus hasn't disabled polling itself yet). Can be tested by adding a `Task.Delay(3000);` at the end of the `MultiplayerClient.JoinRoom()` task.
This commit is contained in:
parent
69a9fc9732
commit
1f13669636
@ -93,6 +93,9 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
if (!isConnected.Value)
|
||||
return Task.CompletedTask;
|
||||
|
||||
if (client.Room != null)
|
||||
return Task.CompletedTask;
|
||||
|
||||
return base.Poll();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user