aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Security/PluginSecurityManager.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-10-20 12:19:03 -0400
committerGitHub <noreply@github.com>2017-10-20 12:19:03 -0400
commit9b383f6b1ad57489c71e4d81d9c831d3d5960f10 (patch)
tree87fc46c77646967dbb88f49538531a81004f9a7b /Emby.Server.Implementations/Security/PluginSecurityManager.cs
parent93a0244b7aee9d850dfa48762e64348a3c864ef5 (diff)
parent0cf4f01dc72b3775e3af067ed1eef51c683a3c02 (diff)
Merge pull request #2965 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Security/PluginSecurityManager.cs')
-rw-r--r--Emby.Server.Implementations/Security/PluginSecurityManager.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Security/PluginSecurityManager.cs b/Emby.Server.Implementations/Security/PluginSecurityManager.cs
index d42fae3ad..615ffa1f4 100644
--- a/Emby.Server.Implementations/Security/PluginSecurityManager.cs
+++ b/Emby.Server.Implementations/Security/PluginSecurityManager.cs
@@ -293,10 +293,13 @@ namespace Emby.Server.Implementations.Security
options.SetPostData(data);
- using (var json = (await _httpClient.Post(options).ConfigureAwait(false)).Content)
+ using (var response = (await _httpClient.Post(options).ConfigureAwait(false)))
{
- reg = _jsonSerializer.DeserializeFromStream<RegRecord>(json);
- success = true;
+ using (var json = response.Content)
+ {
+ reg = _jsonSerializer.DeserializeFromStream<RegRecord>(json);
+ success = true;
+ }
}
if (reg.registered)