1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +08:00
This commit is contained in:
smoogipoo 2019-03-22 14:20:53 +09:00
parent dc004910d7
commit 860999ad29

View File

@ -32,18 +32,12 @@ namespace osu.Game.Online.API
get => state; get => state;
private set private set
{ {
APIState oldState = state; if (state == value)
APIState newState = value; return;
state = value; state = value;
if (oldState != newState) Scheduler.Add(() => components.ForEach(c => c.APIStateChanged(this, value)));
{
Scheduler.Add(delegate
{
components.ForEach(c => c.APIStateChanged(this, newState));
});
}
} }
} }