[evolution-rss/evolution-rss-0-2-0] Bug #Bug 648559 - evolution RSS plugin wont accept any feeds. makes evolution freeze with huge surge



commit 536a1172617d5f73fecb1111e21d1dce123e96fd
Author: Lucian Langa <lucilanga gnome org>
Date:   Wed May 4 22:31:06 2011 +0300

    Bug #Bug 648559 - evolution RSS plugin wont accept any feeds.
    makes evolution freeze with huge surge in CPU
    Remove mainloop invocation from soup handlers,
    it seems it blocking soup infinetly

 src/rss.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index 6de344b..b84c09e 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -341,8 +341,6 @@ statuscb(NetStatusType status, gpointer statusdata, gpointer data)
 			progress = (NetStatusProgress*)statusdata;
 			if (progress->current > 0 && progress->total > 0) {
 				fraction = (float)progress->current / progress->total;
-				while (gtk_events_pending ())
-				gtk_main_iteration ();
 			if (rf->cancel_all) break;
 #ifndef EVOLUTION_2_12
 		if (rf->progress_dialog  && 0 <= fraction && 1 >= fraction) {
@@ -568,8 +566,6 @@ textcb(NetStatusType status, gpointer statusdata, gpointer data)
 			fraction = (float)progress->current / progress->total;
 			d("%.2f%% ", fraction);
 		}
-		while (gtk_events_pending())
-			gtk_main_iteration ();
 		break;
 	default:
 		g_warning("unhandled network status %d\n", status);
@@ -976,8 +972,6 @@ summary_cb (GtkWidget *button, EMFormatHTMLPObject *pobject)
 #else
 	em_format_redraw((EMFormat *)pobject);
 #endif
-//	while (gtk_events_pending ())
-//           gtk_main_iteration ();
 }
 
 
@@ -3762,9 +3756,6 @@ finish_comments (SoupSession *soup_sess, SoupMessage *msg, EMFormatHTML *user_da
 		em_format_redraw((EMFormat *)user_data);
 #endif
 	}
-
-	while (gtk_events_pending ())
-		gtk_main_iteration ();
 }
 
 static void



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