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

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

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

--- trunk/libxmltv/Core/XMLTVProgramCollection.cs	2013/03/08 03:36:44	44
+++ trunk/libxmltv/Core/XMLTVProgramCollection.cs	2013/03/08 03:41:18	45
@@ -52,6 +52,10 @@
             int index = 0;
             foreach (var c in doc.Descendants(XMLTVConstants.PROGRAM_ELEMENT))
             {
+                if (instance.IsDisposing)
+                {
+                    break;
+                }
                 Program program = new Program();
 
                 program.Id = index;

 

  ViewVC Help
Powered by ViewVC 1.1.22