1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Move cancellation token construction closer to usage

This commit is contained in:
Dean Herbert 2019-12-19 11:26:22 +09:00
parent dd68106d90
commit a46602f705

View File

@ -146,8 +146,6 @@ namespace osu.Game.Overlays
return;
}
loadCancellation = new CancellationTokenSource();
IEnumerable<User> sortedUsers = Users;
switch (Filter.Tabs.Current.Value)
@ -202,7 +200,7 @@ namespace osu.Game.Overlays
loading.Hide();
ScrollFlow.Add(panels = newPanels);
}, loadCancellation.Token);
}, (loadCancellation = new CancellationTokenSource()).Token);
}
private void onFilterUpdate()