update details

This commit is contained in:
Luke Pulverenti 2016-12-02 03:03:38 -05:00
parent 77a6eafe15
commit 12ff39eeaf
2 changed files with 3 additions and 4 deletions

View File

@ -817,7 +817,6 @@ namespace Emby.Server.Implementations.Connect
}
}
private readonly SemaphoreSlim _connectImageSemaphore = new SemaphoreSlim(5, 5);
private async Task RefreshAuthorizations(List<ServerUserAuthorizationResponse> list, bool refreshImages)
{
var users = _userManager.Users.ToList();
@ -992,7 +991,7 @@ namespace Emby.Server.Implementations.Connect
if (changed)
{
await _providerManager.SaveImage(user, imageUrl, _connectImageSemaphore, ImageType.Primary, null, CancellationToken.None).ConfigureAwait(false);
await _providerManager.SaveImage(user, imageUrl, null, ImageType.Primary, null, CancellationToken.None).ConfigureAwait(false);
await user.RefreshMetadata(new MetadataRefreshOptions(_fileSystem)
{

View File

@ -261,13 +261,13 @@ namespace Emby.Server.Implementations.Security
var reg = new RegRecord
{
// Cache the result for up to a week
registered = regInfo != null && nextCheckDate >= DateTime.UtcNow,
registered = regInfo != null && nextCheckDate >= DateTime.UtcNow && expDate >= DateTime.UtcNow,
expDate = expDate
};
var success = reg.registered;
if (!(lastChecked > DateTime.UtcNow.AddDays(-1)))
if (!(lastChecked > DateTime.UtcNow.AddDays(-1)) || !reg.registered)
{
var data = new Dictionary<string, string>
{