From 5b29dedcbebb255a22a39932049fb8f6df53da3d Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 22 Mar 2025 10:10:52 +0800 Subject: [PATCH] Remove useless cancellation token source --- Flow.Launcher/App.xaml.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs index 63dcdf353..7d417e036 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -30,7 +30,6 @@ namespace Flow.Launcher #region Public Properties public static IPublicAPI API { get; private set; } - public static CancellationTokenSource NativeThreadCTS { get; private set; } #endregion @@ -121,8 +120,6 @@ namespace Flow.Launcher [STAThread] public static void Main() { - NativeThreadCTS = new CancellationTokenSource(); - if (SingleInstance.InitializeAsFirstInstance()) { var application = new App(); @@ -251,7 +248,6 @@ namespace Flow.Launcher Current.Exit += async (s, e) => { - NativeThreadCTS.Cancel(); Log.Info("|App.RegisterExitEvents|Application Exit"); await DisposeAsync(); };