[chronojump] force sensor: fixed bad Chronojump exit if forceOtherThread not used
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] force sensor: fixed bad Chronojump exit if forceOtherThread not used
- Date: Tue, 24 Oct 2017 21:41:46 +0000 (UTC)
commit 3359bf0ec8072d0b509ba76c0ea68bc43f518d3a
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Oct 24 23:40:57 2017 +0200
force sensor: fixed bad Chronojump exit if forceOtherThread not used
src/gui/chronojump.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index d270668..d791a32 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2157,7 +2157,7 @@ public partial class ChronoJumpWindow
LogB.Information("cancelling force capture");
forceProcessCancel = true;
}
- if(forceOtherThread.IsAlive)
+ if(forceOtherThread != null && forceOtherThread.IsAlive)
forceOtherThread.Abort();
if(portFSOpened)
portFS.Close();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]