The Free Software Media System - Server Backend & API
Properly fill in RegError
Eric Reed7302b9a4be81
diff --git a/MediaBrowser.Common.Implementations/Security/MBRegistration.cs b/MediaBrowser.Common.Implementations/Security/MBRegistration.csindex ca000df19c..dbb1b13e15 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 thovar 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.Securityusing (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.slnindex 4eec81cff4..f2b7a612c9 100644--- a/MediaBrowser.sln+++ b/MediaBrowser.sln@@ -283,7 +283,4 @@ GlobalGlobalSection(SolutionProperties) = preSolutionHideSolutionNode = FALSEEndGlobalSection- GlobalSection(Performance) = preSolution- HasPerformanceSessions = true- EndGlobalSectionEndGlobal