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

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

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

--- trunk/libxmltv/Core/XMLTVChannelCollection.cs	2013/03/08 03:36:44	44
+++ trunk/libxmltv/Core/XMLTVChannelCollection.cs	2013/03/08 03:41:18	45
@@ -41,6 +41,10 @@
 
             foreach (var c in doc.Descendants(XMLTVConstants.CHANNEL_ELEMENT))
             {
+                if (instance.IsDisposing)
+                {
+                    break;
+                }
                 Channel channel = new Channel(c);
                 entries.Add(channel.Id, channel);
                 Application.DoEvents();

 

  ViewVC Help
Powered by ViewVC 1.1.22