From 835600cbcc67527d4b464a90191fcc2ab30a99f1 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 4 May 2023 12:18:09 -0500 Subject: [PATCH] Added task logging to resume method --- DS4Windows/DS4Forms/MainWindow.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/MainWindow.xaml.cs b/DS4Windows/DS4Forms/MainWindow.xaml.cs index 86b8e6bf0..c32275ca9 100644 --- a/DS4Windows/DS4Forms/MainWindow.xaml.cs +++ b/DS4Windows/DS4Forms/MainWindow.xaml.cs @@ -492,10 +492,13 @@ private void PowerEventArrive(object sender, EventArrivedEventArgs e) //Thread.Sleep(60000); //App.rootHub.Start(); - Task.Delay(120000).ContinueWith(t => + Task startupTask = Task.Delay(120000).ContinueWith(t => { App.rootHub.Start(); }); + + // Log exceptions that might occur + Util.LogAssistBackgroundTask(startupTask); } }