[chronojump] care of import/backup threads on quit program
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] care of import/backup threads on quit program
- Date: Thu, 21 May 2020 12:43:42 +0000 (UTC)
commit 5daf36f322961ad41ab5557bc79708ef43d34aa8
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu May 21 14:42:56 2020 +0200
care of import/backup threads on quit program
src/gui/app1/chronojump.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 64d49713..0db279e5 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -2277,6 +2277,18 @@ public partial class ChronoJumpWindow
}
}
+ if(threadImport != null || threadImport.IsAlive)
+ {
+ LogB.Information("Closing threadImport");
+ threadImport.Abort();
+ }
+
+ if(app1s_threadBackup != null || app1s_threadBackup.IsAlive)
+ {
+ LogB.Information("Closing app1s_threadBackup");
+ app1s_threadBackup.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]