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

Merge pull request #774 from peppy/fix-chat-after-disconnect

Fix channels being unnecessarily recycled on disconnect
This commit is contained in:
Dan Balasescu 2017-05-17 22:02:25 +09:00 committed by GitHub
commit 8bcbc2cc26

View File

@ -206,18 +206,12 @@ namespace osu.Game.Overlays
private long? lastMessageId;
private List<Channel> careChannels;
private List<Channel> careChannels = new List<Channel>();
private readonly List<DrawableChannel> loadedChannels = new List<DrawableChannel>();
private void initializeChannels()
{
currentChannelContainer.Clear();
loadedChannels.Clear();
careChannels = new List<Channel>();
SpriteText loading;
Add(loading = new OsuSpriteText
{
@ -232,8 +226,6 @@ namespace osu.Game.Overlays
ListChannelsRequest req = new ListChannelsRequest();
req.Success += delegate (List<Channel> channels)
{
Debug.Assert(careChannels.Count == 0);
Scheduler.Add(delegate
{
loading.FadeOut(100);