fix windows restart hang

This commit is contained in:
Luke Pulverenti
2015-09-30 00:07:21 -04:00
parent 11754a2fb2
commit 459e483b4e
3 changed files with 25 additions and 11 deletions

View File

@@ -158,9 +158,14 @@ namespace MediaBrowser.Common.Implementations.Security
return new SupporterInfo();
}
var url = MbAdmin.HttpsUrl + "/service/supporter/retrieve?key=" + key;
var data = new Dictionary<string, string>
{
{ "key", key },
};
using (var stream = await _httpClient.Get(url, CancellationToken.None).ConfigureAwait(false))
var url = MbAdmin.HttpsUrl + "/service/supporter/retrieve";
using (var stream = await _httpClient.Post(url, data, CancellationToken.None).ConfigureAwait(false))
{
var response = _jsonSerializer.DeserializeFromStream<SuppporterInfoResponse>(stream);
@@ -269,4 +274,4 @@ namespace MediaBrowser.Common.Implementations.Security
_isMbSupporterInitialized = false;
}
}
}
}