aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs b/MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs
index e80c5cc1c..006e78bc7 100644
--- a/MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs
+++ b/MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs
@@ -275,6 +275,10 @@ namespace MediaBrowser.ServerApplication.EntryPoints
{
lock (_libraryChangedSyncLock)
{
+ // Remove dupes in case some were saved multiple times
+ LibraryUpdateInfo.Folders = LibraryUpdateInfo.Folders.Distinct().ToList();
+ LibraryUpdateInfo.ItemsUpdated = LibraryUpdateInfo.ItemsUpdated.Distinct().ToList();
+
_serverManager.SendWebSocketMessage("LibraryChanged", LibraryUpdateInfo);
if (LibraryUpdateTimer != null)