Bug fix
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release Linux / deb (push) Blocked by required conditions
release Linux / rpm (push) Blocked by required conditions
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run

https://github.com/2dust/v2rayN/issues/9016
This commit is contained in:
2dust 2026-03-30 19:49:37 +08:00
parent 1090afd774
commit 2caf8ea14f

View file

@ -709,18 +709,22 @@ public class ProfilesViewModel : MyReactiveObject
public async Task ServerSpeedtest(ESpeedActionType actionType)
{
if (actionType == ESpeedActionType.Mixedtest)
List<ProfileItem>? lstSelected;
if (actionType is ESpeedActionType.Mixedtest or ESpeedActionType.FastRealping)
{
SelectedProfiles = ProfileItems;
if (actionType == ESpeedActionType.FastRealping)
{
actionType = ESpeedActionType.Realping;
}
lstSelected = JsonUtils.Deserialize<List<ProfileItem>>(JsonUtils.Serialize(ProfileItems?.OrderBy(t => t.Sort)));
}
else if (actionType == ESpeedActionType.FastRealping)
else
{
SelectedProfiles = ProfileItems;
actionType = ESpeedActionType.Realping;
lstSelected = await GetProfileItems(false);
}
var lstSelected = await GetProfileItems(false);
if (lstSelected == null)
if (lstSelected is null || lstSelected.Count <= 0)
{
return;
}