1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 16:07:25 +08:00

Fix initial multiplayer poll

This commit is contained in:
smoogipoo 2021-08-13 18:13:55 +09:00
parent 6a46105b5e
commit 1bae7173d3

View File

@ -28,7 +28,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
private MultiplayerListingPollingComponent listingPollingComponent;
private readonly IBindable<bool> isConnected = new Bindable<bool>();
private readonly Bindable<bool> allowPolling = new Bindable<bool>();
protected override void LoadComplete()
{
@ -36,6 +35,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
isConnected.BindTo(client.IsConnected);
isConnected.BindValueChanged(c => Scheduler.AddOnce(() => listingPollingComponent.AllowPolling = c.NewValue));
listingPollingComponent.AllowPolling = isConnected.Value;
}
public override void OnResuming(IScreen last)