keep an applied invalidation from inducing a write that publishes back
This commit is contained in:
@@ -802,8 +802,10 @@ namespace Emby.Server.Implementations
|
||||
var requiresRestart = false;
|
||||
var networkConfiguration = ConfigurationManager.GetNetworkConfiguration();
|
||||
|
||||
// Don't do anything if these haven't been set yet
|
||||
if (HttpPort != 0 && HttpsPort != 0)
|
||||
// Don't do anything if these haven't been set yet, and don't clear the authorization flag on
|
||||
// behalf of another instance: it already wrote that flag along with the port change, so
|
||||
// repeating the save here only races it.
|
||||
if (HttpPort != 0 && HttpsPort != 0 && !ConfigurationInvalidationContext.IsApplyingRemoteInvalidation)
|
||||
{
|
||||
// Need to restart if ports have changed
|
||||
if (networkConfiguration.InternalHttpPort != HttpPort
|
||||
|
||||
Reference in New Issue
Block a user