diff --git a/v2rayN/Directory.Build.props b/v2rayN/Directory.Build.props index bfc06e5a..ebc9dcf6 100644 --- a/v2rayN/Directory.Build.props +++ b/v2rayN/Directory.Build.props @@ -1,7 +1,7 @@ - 7.25.1 + 7.25.2 diff --git a/v2rayN/ServiceLib/ViewModels/ClashConnectionsViewModel.cs b/v2rayN/ServiceLib/ViewModels/ClashConnectionsViewModel.cs index 3fca12dc..23454d90 100644 --- a/v2rayN/ServiceLib/ViewModels/ClashConnectionsViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/ClashConnectionsViewModel.cs @@ -129,7 +129,7 @@ public partial class ClashConnectionsViewModel : MyReactiveObject try { var numOfExecuted = 1; - while (true) + while (!token.IsCancellationRequested) { await Task.Delay(1000, token); numOfExecuted++; diff --git a/v2rayN/ServiceLib/ViewModels/ClashProxiesViewModel.cs b/v2rayN/ServiceLib/ViewModels/ClashProxiesViewModel.cs index ea2bdbc1..b8c3a096 100644 --- a/v2rayN/ServiceLib/ViewModels/ClashProxiesViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/ClashProxiesViewModel.cs @@ -113,7 +113,7 @@ public partial class ClashProxiesViewModel : MyReactiveObject try { var numOfExecuted = 1; - while (true) + while (!token.IsCancellationRequested) { await Task.Delay(1000, token); numOfExecuted++;