aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-01-05 17:09:48 -0500
committerGitHub <noreply@github.com>2019-01-05 17:09:48 -0500
commitaf6c4279eecb7b75334a58ecf8a3b9ceacbd9835 (patch)
tree2fa5c70cdf3992c482effa6483e3d106cb6902f9
parentc5eb782c7bf55b9051b61ed854f586c19156a76b (diff)
parentf911aca0823b676ecd64802f0b938f631656290d (diff)
Merge pull request #436 from cvium/remove_weird_admin_code
Remove RegisterServerWithAdministratorAccess
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs27
1 files changed, 0 insertions, 27 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 236851968..565e5d408 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1310,7 +1310,6 @@ namespace Emby.Server.Implementations
{
if (!ServerConfigurationManager.Configuration.IsPortAuthorized)
{
- RegisterServerWithAdministratorAccess();
ServerConfigurationManager.Configuration.IsPortAuthorized = true;
ConfigurationManager.SaveConfiguration();
}
@@ -2225,32 +2224,6 @@ namespace Emby.Server.Implementations
protected abstract void ShutdownInternal();
- /// <summary>
- /// Registers the server with administrator access.
- /// </summary>
- private void RegisterServerWithAdministratorAccess()
- {
- Logger.LogInformation("Requesting administrative access to authorize http server");
-
- try
- {
- AuthorizeServer();
- }
- catch (NotImplementedException)
- {
-
- }
- catch (Exception ex)
- {
- Logger.LogError(ex, "Error authorizing server");
- }
- }
-
- protected virtual void AuthorizeServer()
- {
- throw new NotImplementedException();
- }
-
public event EventHandler HasUpdateAvailableChanged;
private bool _hasUpdateAvailable;