[evolution-data-server] Fix error handling in CamelLocalFolder::sync().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Fix error handling in CamelLocalFolder::sync().
- Date: Wed, 28 Jul 2010 19:58:49 +0000 (UTC)
commit 998b06366faa1e190c6a8ad41b584b8691ab0596
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Jul 28 15:57:56 2010 -0400
Fix error handling in CamelLocalFolder::sync().
camel/providers/local/camel-local-folder.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/local/camel-local-folder.c b/camel/providers/local/camel-local-folder.c
index 004f400..fa07e5d 100644
--- a/camel/providers/local/camel-local-folder.c
+++ b/camel/providers/local/camel-local-folder.c
@@ -520,6 +520,7 @@ static gboolean
local_sync(CamelFolder *folder, gboolean expunge, GError **error)
{
CamelLocalFolder *lf = CAMEL_LOCAL_FOLDER(folder);
+ gboolean success;
d(printf("local sync '%s' , expunge=%s\n", folder->full_name, expunge?"true":"false"));
@@ -529,7 +530,9 @@ local_sync(CamelFolder *folder, gboolean expunge, GError **error)
camel_object_state_write (CAMEL_OBJECT (lf));
/* if sync fails, we'll pass it up on exit through ex */
- camel_local_summary_sync((CamelLocalSummary *)folder->summary, expunge, lf->changes, error);
+ success = (camel_local_summary_sync (
+ (CamelLocalSummary *)folder->summary,
+ expunge, lf->changes, error) == 0);
camel_local_folder_unlock(lf);
if (camel_folder_change_info_changed(lf->changes)) {
@@ -537,7 +540,7 @@ local_sync(CamelFolder *folder, gboolean expunge, GError **error)
camel_folder_change_info_clear(lf->changes);
}
- return TRUE;
+ return success;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]