From 23f5773903d64a554d977ae7d0ebbaca73528f1f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 30 Nov 2011 20:53:20 -0600 Subject: Coding style and whitespace cleanup. --- libemail-engine/e-mail-session-utils.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libemail-engine/e-mail-session-utils.c') diff --git a/libemail-engine/e-mail-session-utils.c b/libemail-engine/e-mail-session-utils.c index 979d15388e..6aa090e0e4 100644 --- a/libemail-engine/e-mail-session-utils.c +++ b/libemail-engine/e-mail-session-utils.c @@ -392,6 +392,7 @@ mail_session_send_to_thread (GSimpleAsyncResult *simple, { AsyncContext *context; CamelFolder *local_sent_folder; + CamelServiceConnectionStatus status; GString *error_messages; gboolean copy_to_sent = TRUE; guint ii; @@ -417,11 +418,15 @@ mail_session_send_to_thread (GSimpleAsyncResult *simple, return; } - if (camel_service_get_connection_status (service) != CAMEL_SERVICE_CONNECTED) { + status = camel_service_get_connection_status (service); + if (status != CAMEL_SERVICE_CONNECTED) { did_connect = TRUE; /* XXX This API does not allow for cancellation. */ - if (!em_utils_connect_service_sync (service, cancellable, &error)) { + em_utils_connect_service_sync ( + service, cancellable, &error); + + if (error != NULL) { g_simple_async_result_take_error (simple, error); return; } -- cgit