aboutsummaryrefslogtreecommitdiff
path: root/Emby.Notifications/NotificationEntryPoint.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2020-11-06 17:11:01 +0100
committerGitHub <noreply@github.com>2020-11-06 17:11:01 +0100
commit6afd990986d70ac24d1acf5c0e1b951e20a5a142 (patch)
tree3f5c0090ed308d54e37d3456a85516868dd1145a /Emby.Notifications/NotificationEntryPoint.cs
parente6480066b13d5c1aed73bcec291c3f2f35f26506 (diff)
parent134fd0d9604ab2108e5008205ede3444aa1a7610 (diff)
Merge pull request #4424 from jellyfin/minor8
Minor perf improvements
Diffstat (limited to 'Emby.Notifications/NotificationEntryPoint.cs')
-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)
{