Exit early as safety when no messages are received

This commit is contained in:
Dean Herbert 2018-09-28 10:00:40 +09:00
parent f0b1aa7edf
commit 6a763334a1
1 changed files with 2 additions and 0 deletions

View File

@ -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;