diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2014-06-10 22:50:50 -0400 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2014-06-10 22:51:02 -0400 |
| commit | 7302b9a4be817577fe98da6e8b2b2bf2c37d6f0a (patch) | |
| tree | b62627d0e68283880a9af0dce07b9f2cd614942d | |
| parent | 437062b29e3e3456c15659666d6015356695913c (diff) | |
Properly fill in RegError
| -rw-r--r-- | MediaBrowser.Common.Implementations/Security/MBRegistration.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.sln | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/MBRegistration.cs b/MediaBrowser.Common.Implementations/Security/MBRegistration.cs index ca000df19..dbb1b13e1 100644 --- a/MediaBrowser.Common.Implementations/Security/MBRegistration.cs +++ b/MediaBrowser.Common.Implementations/Security/MBRegistration.cs @@ -52,6 +52,7 @@ namespace MediaBrowser.Common.Implementations.Security { //check the reg file first to alleviate strain on the MB admin server - must actually check in every 30 days tho var reg = new RegRecord { registered = LicenseFile.LastChecked(feature) > DateTime.UtcNow.AddDays(-30) }; + var success = reg.registered; if (!reg.registered) { @@ -73,6 +74,7 @@ namespace MediaBrowser.Common.Implementations.Security using (var json = await httpClient.Post(MBValidateUrl, data, CancellationToken.None).ConfigureAwait(false)) { reg = jsonSerializer.DeserializeFromStream<RegRecord>(json); + success = true; } if (reg.registered) @@ -91,7 +93,7 @@ namespace MediaBrowser.Common.Implementations.Security } } - return new MBRegistrationRecord { IsRegistered = reg.registered, ExpirationDate = reg.expDate, RegChecked = true }; + return new MBRegistrationRecord { IsRegistered = reg.registered, ExpirationDate = reg.expDate, RegChecked = true, RegError = !success}; } } } diff --git a/MediaBrowser.sln b/MediaBrowser.sln index 4eec81cff..f2b7a612c 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -283,7 +283,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(Performance) = preSolution - HasPerformanceSessions = true - EndGlobalSection EndGlobal |
