diff --git a/v2rayN/ServiceLib/ViewModels/ClashConnectionsViewModel.cs b/v2rayN/ServiceLib/ViewModels/ClashConnectionsViewModel.cs index e5b5585f..a9bb4eae 100644 --- a/v2rayN/ServiceLib/ViewModels/ClashConnectionsViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/ClashConnectionsViewModel.cs @@ -53,7 +53,7 @@ namespace ServiceLib.ViewModels private async Task Init() { - _ = DelayTestTask(); + await DelayTestTask(); } private async Task GetClashConnections() diff --git a/v2rayN/ServiceLib/ViewModels/ClashProxiesViewModel.cs b/v2rayN/ServiceLib/ViewModels/ClashProxiesViewModel.cs index f1011f26..45339bdf 100644 --- a/v2rayN/ServiceLib/ViewModels/ClashProxiesViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/ClashProxiesViewModel.cs @@ -95,7 +95,7 @@ namespace ServiceLib.ViewModels private async Task Init() { - _ = DelayTestTask(); + await DelayTestTask(); } private async Task DoRuleModeSelected(bool c) @@ -366,7 +366,7 @@ namespace ServiceLib.ViewModels private async Task ProxiesDelayTest(bool blAll = true) { - ClashApiHandler.Instance.ClashProxiesDelayTest(blAll, _proxyDetails.ToList(), async (item, result) => + ClashApiHandler.Instance.ClashProxiesDelayTest(blAll, _proxyDetails.ToList(), (item, result) => { if (item == null || result.IsNullOrEmpty()) {