mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Exit early as safety when no messages are received
This commit is contained in:
parent
f0b1aa7edf
commit
6a763334a1
@ -60,6 +60,8 @@ namespace osu.Game.Online.Chat
|
||||
{
|
||||
messages = messages.Except(Messages).ToArray();
|
||||
|
||||
if (messages.Length == 0) return;
|
||||
|
||||
Messages.AddRange(messages);
|
||||
MessagesLoaded = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user