mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09: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:
@ -93,6 +93,9 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
|||||||
if (!isConnected.Value)
|
if (!isConnected.Value)
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
|
||||||
|
if (client.Room != null)
|
||||||
|
return Task.CompletedTask;
|
||||||
|
|
||||||
return base.Poll();
|
return base.Poll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user