mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CP-13374: SetSslLegacyAction must be last because it will disrupt the connection
This commit is contained in:
parent
59a432ff40
commit
02aeb0b6d5
@ -420,6 +420,7 @@ namespace XenAdmin.Dialogs
|
||||
private List<AsyncAction> SaveSettings()
|
||||
{
|
||||
List<AsyncAction> actions = new List<AsyncAction>();
|
||||
AsyncAction finalAction = null;
|
||||
|
||||
foreach (IEditPage editPage in verticalTabs.Items)
|
||||
{
|
||||
@ -430,9 +431,14 @@ namespace XenAdmin.Dialogs
|
||||
if (action == null)
|
||||
continue;
|
||||
|
||||
actions.Add(action);
|
||||
if (action is SetSslLegacyAction)
|
||||
finalAction = action; // annoying special case: SetSslLegacyAction must be last because it will disrupt the connection and we may lose later actions
|
||||
else
|
||||
actions.Add(action);
|
||||
}
|
||||
|
||||
if (finalAction != null)
|
||||
actions.Add(finalAction);
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user