remove dupes from library changed web socket event
This commit is contained in:
parent
8f61e37498
commit
34672889e9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user