add error handling to library changed notifier

This commit is contained in:
Luke Pulverenti 2016-02-23 11:25:17 -05:00
parent 8f9b605e13
commit 7393570c4b
2 changed files with 13 additions and 3 deletions

View File

@ -99,7 +99,7 @@ namespace MediaBrowser.Providers.People
var requestCount = _requestCount;
if (requestCount >= 10)
if (requestCount >= 20)
{
//_logger.Debug("Throttling Tmdb people");

View File

@ -213,8 +213,18 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
if (userSessions.Count > 0)
{
var info = GetLibraryUpdateInfo(itemsAdded, itemsUpdated, itemsRemoved, foldersAddedTo,
foldersRemovedFrom, id);
LibraryUpdateInfo info;
try
{
info = GetLibraryUpdateInfo(itemsAdded, itemsUpdated, itemsRemoved, foldersAddedTo,
foldersRemovedFrom, id);
}
catch (Exception ex)
{
_logger.ErrorException("Error in GetLibraryUpdateInfo", ex);
return;
}
foreach (var userSession in userSessions)
{