From ae32ea1241aaefd233557bf8f474c8533f050858 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Thu, 28 May 2026 13:54:11 +0200 Subject: [PATCH] Cleanup after registering If the user connects to the console, and then disconnects without restarting Duplicati, the UI state would look like it was still registering. This PR fixes it by clearing the stale data after the registration completes or fails, so the UI does not show an incorrect state. --- .../Services/RemoteControllerRegistrationService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Duplicati/WebserverCore/Services/RemoteControllerRegistrationService.cs b/Duplicati/WebserverCore/Services/RemoteControllerRegistrationService.cs index b37110594..ec74ebd49 100644 --- a/Duplicati/WebserverCore/Services/RemoteControllerRegistrationService.cs +++ b/Duplicati/WebserverCore/Services/RemoteControllerRegistrationService.cs @@ -139,6 +139,9 @@ public class RemoteControllerRegistrationService(Connection connection, IHttpCli } finally { + // Machine is claimed or failed and we are done with the registration process, throw away the data + _registerForRemote = null; + RegistrationUrl = null; eventPollNotify.SignalRemoteControlUpdate(); } });