diff --git a/src/OpenClaw.Tray.WinUI/App.xaml.cs b/src/OpenClaw.Tray.WinUI/App.xaml.cs index de0780f..68165d7 100644 --- a/src/OpenClaw.Tray.WinUI/App.xaml.cs +++ b/src/OpenClaw.Tray.WinUI/App.xaml.cs @@ -1606,6 +1606,7 @@ public partial class App : Application // Reconnect with new settings — mirror the startup if/else pattern // to avoid dual connections that cause gateway conflicts. _gatewayClient?.Dispose(); + _gatewayClient = null; var oldNodeService = _nodeService; _nodeService = null; try { oldNodeService?.Dispose(); } catch (Exception ex) { Logger.Warn($"Node dispose error: {ex.Message}"); }