aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2015-10-28 18:48:56 -0400
committerEric Reed <ebr@mediabrowser3.com>2015-10-28 18:48:56 -0400
commitc155d18279a6fbc3cbe2a055ffa1633beac1c01d (patch)
tree276434631556b598dc3aca45801f4d09ed58a97c
parenta9e079787827ba588c4f70db5fe9747aa9061639 (diff)
Partial updates
-rw-r--r--MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs14
1 files changed, 5 insertions, 9 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
index 7cc31ad7a..657305188 100644
--- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
+++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
@@ -219,10 +219,6 @@ namespace MediaBrowser.Common.Implementations.Security
{
SupporterKey = reg.key;
}
- else
- {
- throw new PaymentRequiredException();
- }
}
}
@@ -231,13 +227,13 @@ namespace MediaBrowser.Common.Implementations.Security
SaveAppStoreInfo(parameters);
throw;
}
- catch (PaymentRequiredException)
- {
- SaveAppStoreInfo(parameters);
- throw;
- }
catch (Exception e)
{
+ //Right here we need to examine the response code returned by the http call to mb3admin
+ // that's the part I'm not sure how to do - maybe it is passed in the exception?
+ //If that response code is a 402 then throw our PaymentRequiredException. There should be no reason to save the data in this case
+
+ //If it was any other response code, execute the block below
_logger.ErrorException("Error registering appstore purchase {0}", e, parameters ?? "NO PARMS SENT");
SaveAppStoreInfo(parameters);
//TODO - could create a re-try routine on start-up if this file is there. For now we can handle manually.