1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Fix disposal logic

This commit is contained in:
Dean Herbert 2019-09-06 10:43:19 +09:00
parent 60c2d113b8
commit 50985d1b1d

View File

@ -23,12 +23,6 @@ namespace osu.Game.Rulesets.UI
this.secondary = secondary;
}
public void Dispose()
{
primary.Dispose();
secondary.Dispose();
}
public SampleChannel Get(string name) => primary.Get(name) ?? secondary.Get(name);
public Task<SampleChannel> GetAsync(string name) => primary.GetAsync(name) ?? secondary.GetAsync(name);
@ -58,7 +52,15 @@ namespace osu.Game.Rulesets.UI
public int PlaybackConcurrency
{
get => primary.PlaybackConcurrency;
set => primary.PlaybackConcurrency = value;
set
{
primary.PlaybackConcurrency = value;
secondary.PlaybackConcurrency = value;
}
}
public void Dispose()
{
}
}
}