aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-store-utils.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-07-02 02:01:45 +0800
committerMilan Crha <mcrha@redhat.com>2011-07-02 02:01:45 +0800
commit7c6aa944e224b4f938cad03bc6531bc5430c9cdb (patch)
tree65613f6ce5e64f12c945557ab1dd99ea36ac4b4e /mail/e-mail-store-utils.c
parent6d8542a62879bd8b6f06e2679fc9f846ba497935 (diff)
downloadgsoc2013-evolution-7c6aa944e224b4f938cad03bc6531bc5430c9cdb.tar.gz
gsoc2013-evolution-7c6aa944e224b4f938cad03bc6531bc5430c9cdb.tar.zst
gsoc2013-evolution-7c6aa944e224b4f938cad03bc6531bc5430c9cdb.zip
Bug #650671 - Service connect/disconnect not cancelled properly
Diffstat (limited to 'mail/e-mail-store-utils.c')
-rw-r--r--mail/e-mail-store-utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/e-mail-store-utils.c b/mail/e-mail-store-utils.c
index c0d2466216..1b9713bee2 100644
--- a/mail/e-mail-store-utils.c
+++ b/mail/e-mail-store-utils.c
@@ -20,6 +20,8 @@
#include <config.h>
#endif
+#include "em-utils.h"
+
#include "e-mail-store-utils.h"
#include <glib/gi18n-lib.h>
@@ -175,7 +177,7 @@ mail_store_go_offline_thread (GSimpleAsyncResult *simple,
disco_store, CAMEL_DISCO_STORE_OFFLINE,
cancellable, &error);
else
- camel_service_disconnect_sync (service, TRUE, &error);
+ em_utils_disconnect_service_sync (service, TRUE, cancellable, &error);
} else if (CAMEL_IS_OFFLINE_STORE (store)) {
CamelOfflineStore *offline_store;
@@ -186,7 +188,7 @@ mail_store_go_offline_thread (GSimpleAsyncResult *simple,
offline_store, FALSE, cancellable, &error);
} else
- camel_service_disconnect_sync (service, TRUE, &error);
+ em_utils_disconnect_service_sync (service, TRUE, cancellable, &error);
if (error != NULL) {
g_simple_async_result_set_from_error (simple, error);