From f3e89072e4f4566be1aa8354f8e30e9a7977bfde Mon Sep 17 00:00:00 2001 From: Einar Date: Tue, 10 Dec 2024 13:30:39 +0100 Subject: [PATCH] Fix switch on low service level recheck (#750) --- Extractor/Connect/SessionManager.cs | 6 ++---- manifest.yml | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Extractor/Connect/SessionManager.cs b/Extractor/Connect/SessionManager.cs index 1837a4e7..fc4706b8 100644 --- a/Extractor/Connect/SessionManager.cs +++ b/Extractor/Connect/SessionManager.cs @@ -323,10 +323,8 @@ private async Task UpdateServiceLevel(byte newLevel, bool fromConnection) { log.LogDebug("Server ServiceLevel updated {From} -> {To}", oldServiceLevel, newLevel); } - else - { - return false; - } + // If service level equals old service level, we may still need to check + // for reconnect, if this is part of the periodic re-check. bool triggerReconnect = false; if (newLevel < config.Redundancy.ServiceLevelThreshold) diff --git a/manifest.yml b/manifest.yml index 9dbdb140..07a39b26 100644 --- a/manifest.yml +++ b/manifest.yml @@ -67,6 +67,11 @@ schema: - "https://raw.githubusercontent.com/" versions: + "2.32.1-beta2": + description: Fix issue causing the extractor to not properly change redundant server in some cases. + changelog: + fixed: + - Fix issue causing extractor not to properly switch between redundant servers when service level is bad without changing. "2.32.1-beta1": description: Experimental changes to connection logic. changelog: