Patch: add missing connect unlock in imap connect online



	Hi,

	This patch adds a missing connect unlock in imap_connect_online, for
the case auth failed. This could make camel queue die without unlocking
the connect lock on time.

Changelog entry:
* libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c:
  added a missing connect_unlock in imap_connect_online, when auth
  failed.
-- 
José Dapena Paz <jdapena igalia com>
Igalia
diff --git a/ChangeLog b/ChangeLog
index 44f43fe..c7e183d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-14  Jose Dapena Paz  <jdapena igalia com>
+
+	* libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c:
+	added a missing connect_unlock in imap_connect_online, when auth
+	failed.
+
 2009-01-09  Jose Dapena Paz  <jdapena igalia com>
 
 	* libtinymail-camel/tny-camel-account.c: initialize properly some 
diff --git a/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c b/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c
index ecdac46..882ec1d 100644
--- a/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c
+++ b/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c
@@ -2210,6 +2210,7 @@ imap_connect_online (CamelService *service, CamelException *ex)
 	}
 
 	if (!auth) {
+		camel_imap_store_connect_unlock_no_start_idle (store);
 		camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_CANT_AUTHENTICATE,
 			_("Authentication failure"));
 		return FALSE;


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