keep an applied invalidation from inducing a write that publishes back
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

This commit is contained in:
2026-09-21 00:24:01 +10:00
parent b662ffa48f
commit a9d6c749fb
8 changed files with 312 additions and 6 deletions
@@ -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