mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Remove useless cancellation token source
This commit is contained in:
parent
b71e7226e5
commit
5b29dedcbe
1 changed files with 0 additions and 4 deletions
|
|
@ -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<App>.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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue