[evolution-kolab/ek-wip-porting-imapx: 7/7] CamelKolabIMAPXStore: close ExtdConnManager connections before unref



commit 1c3182d7389276b53ed1ed88a911e2fbbe59234e
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Fri Feb 3 16:27:49 2012 +0100

    CamelKolabIMAPXStore: close ExtdConnManager connections before unref
    
    * in the object init function, make sure pending
      connections in the parent are closed before
      unref()ing the CamelIMAPXExtdConnManager and replacing
      it with our own variant (CamelKolabIMAPXConnManager)

 src/camel/camel-kolab-imapx-store.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-kolab-imapx-store.c b/src/camel/camel-kolab-imapx-store.c
index dd626d2..ff5425c 100644
--- a/src/camel/camel-kolab-imapx-store.c
+++ b/src/camel/camel-kolab-imapx-store.c
@@ -109,8 +109,10 @@ camel_kolab_imapx_store_init (CamelKolabIMAPXStore *self)
 	 * to override the respective parent class functions
 	 */
 	istore = CAMEL_IMAPX_STORE (self);
-	if (istore->con_man != NULL)
+	if (istore->con_man != NULL) {
+		camel_imapx_extd_conn_manager_close_connections (istore->con_man);
 		g_object_unref (istore->con_man);
+	}
 	cm = camel_kolab_imapx_conn_manager_new (self);
 	istore->con_man = CAMEL_IMAPX_CONN_MANAGER (cm);
 



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