1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-07 20:42:54 +08:00

Fix incorrect event binding

This commit is contained in:
Dan Balasescu 2022-03-24 17:11:08 +09:00
parent dfa076c169
commit 528ffea38d

View File

@ -31,7 +31,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
{ {
base.LoadComplete(); base.LoadComplete();
multiplayerClient.RoomUpdated += () => Scheduler.AddOnce(onRoomUpdated); multiplayerClient.RoomUpdated += onRoomUpdated;
onRoomUpdated(); onRoomUpdated();
} }
@ -39,7 +39,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
private DateTimeOffset countdownReceivedTime; private DateTimeOffset countdownReceivedTime;
private ScheduledDelegate countdownUpdateDelegate; private ScheduledDelegate countdownUpdateDelegate;
private void onRoomUpdated() private void onRoomUpdated() => Scheduler.AddOnce(() =>
{ {
if (countdown == null && room?.Countdown != null) if (countdown == null && room?.Countdown != null)
countdownReceivedTime = DateTimeOffset.Now; countdownReceivedTime = DateTimeOffset.Now;
@ -56,7 +56,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
updateButtonText(); updateButtonText();
updateButtonColour(); updateButtonColour();
} });
private void updateButtonText() private void updateButtonText()
{ {