We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63b327a commit 7b5afe3Copy full SHA for 7b5afe3
1 file changed
Project-Aurora/Project-Aurora/App.xaml.cs
@@ -284,7 +284,18 @@ protected override void OnExit(ExitEventArgs e)
284
Global.dev_manager?.Dispose();
285
Environment.ExitCode = 0;
286
287
- //ShutdownApp(0);
+ var thread = new Thread(() =>
288
+ {
289
+ var stopwatch = new Stopwatch();
290
+ stopwatch.Start();
291
+ Thread.Sleep(5000);
292
+ if (stopwatch.ElapsedMilliseconds > 4500) {
293
+ ShutdownApp(0);
294
+ }
295
+ });
296
+ thread.IsBackground = true;
297
+ thread.Name = "Exit timer";
298
+ thread.Start();
299
}
300
301
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
0 commit comments