fix live tv folders being created in a loop

This commit is contained in:
Luke Pulverenti
2017-01-11 12:56:26 -05:00
parent 12f20de68b
commit 0b5d4ce3f8
12 changed files with 34 additions and 35 deletions

View File

@@ -925,7 +925,11 @@ namespace Emby.Server.Implementations.Connect
}
_data.PendingAuthorizations = newPendingList;
CacheData();
if (!newPendingList.Select(i => i.Id).SequenceEqual(currentPendingList.Select(i => i.Id), StringComparer.Ordinal))
{
CacheData();
}
await RefreshGuestNames(list, refreshImages).ConfigureAwait(false);
}