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

@@ -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>
{