aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-10-28 15:40:38 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-10-28 15:40:38 -0400
commit9b998a068a2622f43ac813800654e357f94d0c21 (patch)
tree3026f8a9d53a40a6860f9c417f1dacdc5bfbee98 /MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
parent813c715489ff4d1b8d18de895f82d405939ec289 (diff)
update image encoding
Diffstat (limited to 'MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs')
-rw-r--r--MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
index c17a637fe..7cc31ad7a 100644
--- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
+++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
@@ -219,6 +219,10 @@ namespace MediaBrowser.Common.Implementations.Security
{
SupporterKey = reg.key;
}
+ else
+ {
+ throw new PaymentRequiredException();
+ }
}
}
@@ -227,6 +231,11 @@ namespace MediaBrowser.Common.Implementations.Security
SaveAppStoreInfo(parameters);
throw;
}
+ catch (PaymentRequiredException)
+ {
+ SaveAppStoreInfo(parameters);
+ throw;
+ }
catch (Exception e)
{
_logger.ErrorException("Error registering appstore purchase {0}", e, parameters ?? "NO PARMS SENT");