[chronojump] Safest Chronopic connection cancel



commit b15b81e5daefda341ec79893fd18cafc213c9832
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sat Mar 4 13:27:15 2017 +0100

    Safest Chronopic connection cancel

 src/chronopic2016.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/chronopic2016.cs b/src/chronopic2016.cs
index a33ffce..fb7bd56 100644
--- a/src/chronopic2016.cs
+++ b/src/chronopic2016.cs
@@ -111,7 +111,8 @@ public class Chronopic2016
                else //(cpDoing == 2)
                        cp2.AbortFlush = true;
 
-               chronopicInit.CancelledByUser = true;
+               if(chronopicInit != null)
+                       chronopicInit.CancelledByUser = true;
        }
        private void on_delete_event (object o, DeleteEventArgs args)
        {


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