From 8597332b21bbd78b5458f2cdc34267b111393fbd Mon Sep 17 00:00:00 2001
From: 2dust <31833384+2dust@users.noreply.github.com>
Date: Mon, 17 Mar 2025 11:07:01 +0800
Subject: [PATCH] Fixed warnings

---
 v2rayN/ServiceLib/ViewModels/ClashConnectionsViewModel.cs | 2 +-
 v2rayN/ServiceLib/ViewModels/ClashProxiesViewModel.cs     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

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())
                 {