From 528ffea38db1b368b49a5c203fb744d33cbb6568 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Thu, 24 Mar 2022 17:11:08 +0900 Subject: [PATCH] Fix incorrect event binding --- .../OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osu.Game/Screens/OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs b/osu.Game/Screens/OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs index 6ff717d5c3..746e4257f1 100644 --- a/osu.Game/Screens/OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs +++ b/osu.Game/Screens/OnlinePlay/Multiplayer/Match/MultiplayerReadyButton.cs @@ -31,7 +31,7 @@ protected override void LoadComplete() { base.LoadComplete(); - multiplayerClient.RoomUpdated += () => Scheduler.AddOnce(onRoomUpdated); + multiplayerClient.RoomUpdated += onRoomUpdated; onRoomUpdated(); } @@ -39,7 +39,7 @@ protected override void LoadComplete() private DateTimeOffset countdownReceivedTime; private ScheduledDelegate countdownUpdateDelegate; - private void onRoomUpdated() + private void onRoomUpdated() => Scheduler.AddOnce(() => { if (countdown == null && room?.Countdown != null) countdownReceivedTime = DateTimeOffset.Now; @@ -56,7 +56,7 @@ private void onRoomUpdated() updateButtonText(); updateButtonColour(); - } + }); private void updateButtonText() {