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;
private set
{
APIState oldState = state;
APIState newState = value;
if (state == value)
return;
state = value;
if (oldState != newState)
{
Scheduler.Add(delegate
{
components.ForEach(c => c.APIStateChanged(this, newState));
});
}
Scheduler.Add(() => components.ForEach(c => c.APIStateChanged(this, value)));
}
}