Re: Patch: disable poke status when connection is not available



El mar, 11-03-2008 a las 12:55 +0100, Jose Dapena Paz escribió:
> 	Hi,
> 
> 	This patch disallows poke status operation when connection is not
> available. Should avoid getting one poke per folder that should be
> serialized if connection is not available.
> 
> Changelog entry:
> 	* libtinymail-camel/tny-camel-folder.c:
> 	Now poke_status only tries to do the job if folder is
> 	connected/active. Should prevent getting lots of attempts to
> 	connect in queue that have to be finished later.

	And now with patch ;)

> 
-- 
Jose Dapena Paz <jdapena igalia com>
Igalia
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 3485)
+++ ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2008-03-11  Jose Dapena Paz  <jdapena igalia com>
+
+	* libtinymail-camel/tny-camel-folder.c:
+	Now poke_status only tries to do the job if folder is
+	connected/active. Should prevent getting lots of attempts to
+	connect in queue that have to be finished later.
+
 2008-03-07  Jose Dapena Paz  <jdapena igalia com>
 
 	* tests/c-demo/tny-demoui-summary-view.c:
Index: libtinymail-camel/tny-camel-folder.c
===================================================================
--- libtinymail-camel/tny-camel-folder.c	(revision 3485)
+++ libtinymail-camel/tny-camel-folder.c	(working copy)
@@ -5141,7 +5141,7 @@
 	priv = TNY_CAMEL_FOLDER_GET_PRIVATE (folder);
 	store = priv->store;
 
-	if (info->do_status) {
+	if (info->do_status && ((CamelService *) store)->status == CAMEL_SERVICE_CONNECTED) {
 		camel_store_get_folder_status (store, priv->folder_name, 
 			&newurlen, &newlen, &uidnext);
 	}


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