[blam] UpdateThread(): Make sure we don't try to update groups



commit 3c87400abc3e856398b1eaf93f84c8b31dcf4666
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Thu Sep 9 20:13:40 2010 +0100

    UpdateThread(): Make sure we don't try to update groups

 src/ChannelCollection.cs |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/ChannelCollection.cs b/src/ChannelCollection.cs
index 1d5870a..f5ff5c5 100644
--- a/src/ChannelCollection.cs
+++ b/src/ChannelCollection.cs
@@ -319,8 +319,16 @@ namespace Imendio.Blam {
 	{
 	    while (true) {
 		try {
-		    Channel channel = (Channel) mQueue.Dequeue ();
-		    bool updated = FeedUpdater.Update (channel);
+		    IChannel tmp = (IChannel) mQueue.Dequeue ();
+            Channel channel;
+
+           if(tmp is ChannelGroup){
+               mRunningList.Remove(Thread.CurrentThread);
+               return;
+            }
+
+            channel = tmp as Channel;
+            bool updated = FeedUpdater.Update (channel);
 
 		    if (updated) {
 			MarkAsDirty (true);



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