diff options
| author | cvium <clausvium@gmail.com> | 2019-01-05 22:42:10 +0100 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2019-01-05 22:42:10 +0100 |
| commit | f911aca0823b676ecd64802f0b938f631656290d (patch) | |
| tree | f046010dcb72265279cd36f57f0a571a0ec33f56 | |
| parent | f57ad728a50cbee0b4232a5a94cd23a1717ade6f (diff) | |
Remove RegisterServerWithAdministratorAccess
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 27 |
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; |
