[chronojump] Manage threadExport on Chronojump exit



commit 8b0161c0bd4937a2e5e7b6854c315ee07a93d72a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Jun 26 16:09:39 2020 +0200

    Manage threadExport on Chronojump exit

 src/gui/app1/chronojump.cs | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 18ce8196..43f1e5fb 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -2310,6 +2310,12 @@ public partial class ChronoJumpWindow
                        app1s_threadBackup.Abort();
                }
 
+               if(app1s_threadExport != null && app1s_threadExport.IsAlive)
+               {
+                       LogB.Information("Closing app1s_threadExport");
+                       app1s_threadExport.Abort();
+               }
+
                //if capturing on the background finish it
                if(eCaptureInertialBG != null)
                        stopCapturingInertialBG();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]