From 3ce89ebb8a0fb3ce21e999f81b0a417cae5267a9 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 19 Oct 2026 05:31:08 +0200 Subject: [PATCH] horizon-server update: report a switch without an install instead of staying busy Co-Authored-By: Claude Opus 5.5 --- crates/horizon-server/src/supervisor.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/horizon-server/src/supervisor.rs b/crates/horizon-server/src/supervisor.rs index e9535cd53..1cd36e83e 100644 --- a/crates/horizon-server/src/supervisor.rs +++ b/crates/horizon-server/src/supervisor.rs @@ -264,7 +264,13 @@ fn switch( to: &str, timeout: Duration, ) -> Option { - let install = shared.install.as_ref()?; + let Some(install) = shared.install.as_ref() else { + shared.finish_update( + false, + "Not updated: this horizon-server wasn't installed".into(), + ); + return None; + }; let Some(from) = install.current() else { shared.finish_update(false, "Not updated: `current` points at no release".into()); return None;