Skip to content

Commit 5b29ded

Browse files
committed
Remove useless cancellation token source
1 parent b71e722 commit 5b29ded

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public partial class App : IAsyncDisposable, ISingleInstanceApp
3030
#region Public Properties
3131

3232
public static IPublicAPI API { get; private set; }
33-
public static CancellationTokenSource NativeThreadCTS { get; private set; }
3433

3534
#endregion
3635

@@ -121,8 +120,6 @@ static void ShowErrorMsgBoxAndFailFast(string message, Exception e)
121120
[STAThread]
122121
public static void Main()
123122
{
124-
NativeThreadCTS = new CancellationTokenSource();
125-
126123
if (SingleInstance<App>.InitializeAsFirstInstance())
127124
{
128125
var application = new App();
@@ -251,7 +248,6 @@ private void RegisterExitEvents()
251248

252249
Current.Exit += async (s, e) =>
253250
{
254-
NativeThreadCTS.Cancel();
255251
Log.Info("|App.RegisterExitEvents|Application Exit");
256252
await DisposeAsync();
257253
};

0 commit comments

Comments
 (0)