update mouse handler

This commit is contained in:
Luke Pulverenti
2015-10-23 12:04:33 -04:00
parent 4c8236d887
commit 11c5bd4a74
3 changed files with 29 additions and 3 deletions

View File

@@ -208,6 +208,12 @@ namespace MediaBrowser.Common.Implementations.Security
using (var response = await _httpClient.Post(options).ConfigureAwait(false))
{
var reg = _jsonSerializer.DeserializeFromStream<RegRecord>(response.Content);
if (reg == null)
{
_logger.Warn("Result from appstore registration was null. Defaulting to empty.");
reg = new RegRecord();
}
if (!String.IsNullOrEmpty(reg.key))
{
SupporterKey = reg.key;