/[xmltv_parser]/trunk/libxmltv/Core/XMLTVRuntimeInstance.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVRuntimeInstance.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Core/XMLTVRuntimeInstance.cs	2013/03/09 11:28:41	77
+++ trunk/libxmltv/Core/XMLTVRuntimeInstance.cs	2013/03/09 11:40:15	79
@@ -232,6 +232,7 @@
                 CreateLoader(xmlfile);
                 CreateParser();
             }
+            catch (ThreadAbortException ex) { Debug.WriteLine(ex.ToString()); }
             catch (Exception ex)
             {
                 xmltv_logger.Error.WriteLine(ex.ToString());
@@ -284,6 +285,10 @@
             double progress = 0;
             foreach(var node in nodes)
             {
+                if (this.GetInstance().IsAborting)
+                {
+                    break;
+                }
                 if (!CreateHandlerForNode(node)) { xmltv_logger.Verbose.Debug.WriteLine("Unable to create handler for node: '{0}'", node.Name.ToString()); }
                 node_index++;
                 progress = 100.0 * (node_index / total_nodes);

 

  ViewVC Help
Powered by ViewVC 1.1.22