diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-02 03:03:38 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-02 03:03:38 -0500 |
| commit | 12ff39eeafd7bfe81b7d3dd4d3046b5640e33495 (patch) | |
| tree | a8ed96b4a15a7c3623018ea81f335eb20e715b68 /Emby.Server.Implementations/Security/PluginSecurityManager.cs | |
| parent | 77a6eafe154f2b5d1005c0dccffea6e3967635f1 (diff) | |
update details
Diffstat (limited to 'Emby.Server.Implementations/Security/PluginSecurityManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Security/PluginSecurityManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Security/PluginSecurityManager.cs b/Emby.Server.Implementations/Security/PluginSecurityManager.cs index 2a22d048c..f21259137 100644 --- a/Emby.Server.Implementations/Security/PluginSecurityManager.cs +++ b/Emby.Server.Implementations/Security/PluginSecurityManager.cs @@ -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> { |
