mirror of https://github.com/ppy/osu
Exit early as safety when no messages are received
This commit is contained in:
parent
f0b1aa7edf
commit
6a763334a1
|
@ -60,6 +60,8 @@ public void AddNewMessages(params Message[] messages)
|
|||
{
|
||||
messages = messages.Except(Messages).ToArray();
|
||||
|
||||
if (messages.Length == 0) return;
|
||||
|
||||
Messages.AddRange(messages);
|
||||
MessagesLoaded = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue