aboutsummaryrefslogtreecommitdiff
path: root/Emby.Notifications
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-11-06 16:15:30 +0100
committerBond_009 <bond.009@outlook.com>2020-11-06 16:15:30 +0100
commitb21919c7f40770c909a0fc217bf2a326397f84f7 (patch)
treed930ff0a8868bd1f6d45e6450ce626d6e4d4b79a /Emby.Notifications
parentf172b37401585bbcc72708bd1b34f4875ced1a76 (diff)
Minor perf improvements
Diffstat (limited to 'Emby.Notifications')
-rw-r--r--Emby.Notifications/NotificationEntryPoint.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Emby.Notifications/NotificationEntryPoint.cs b/Emby.Notifications/NotificationEntryPoint.cs
index ded22d26c..7116d52b1 100644
--- a/Emby.Notifications/NotificationEntryPoint.cs
+++ b/Emby.Notifications/NotificationEntryPoint.cs
@@ -209,7 +209,10 @@ namespace Emby.Notifications
_libraryUpdateTimer = null;
}
- items = items.Take(10).ToList();
+ if (items.Count > 10)
+ {
+ items = items.GetRange(0, 10);
+ }
foreach (var item in items)
{