aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-01-17 23:46:17 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-01-17 23:46:17 +0800
commit4358994dbe9f50198313e8411dd458899ee8d1a5 (patch)
treecf7349bdaeebc69df1072e1f1e212ad4f66e1b6c /calendar/conduits
parentac6e2ee7ef2921c5c42fce4cd44d733f4f55e440 (diff)
downloadgsoc2013-evolution-4358994dbe9f50198313e8411dd458899ee8d1a5.tar
gsoc2013-evolution-4358994dbe9f50198313e8411dd458899ee8d1a5.tar.gz
gsoc2013-evolution-4358994dbe9f50198313e8411dd458899ee8d1a5.tar.bz2
gsoc2013-evolution-4358994dbe9f50198313e8411dd458899ee8d1a5.tar.lz
gsoc2013-evolution-4358994dbe9f50198313e8411dd458899ee8d1a5.tar.xz
gsoc2013-evolution-4358994dbe9f50198313e8411dd458899ee8d1a5.tar.zst
gsoc2013-evolution-4358994dbe9f50198313e8411dd458899ee8d1a5.zip
Check for open error and handled
1-01-17 JP Rosevear <jpr@ximian.com> * conduits/calendar/calendar-conduit.c (start_calendar_server): Check for open error and handled * conduits/todo/todo-conduit.c (start_calendar_server): ditto svn path=/trunk/; revision=7579
Diffstat (limited to 'calendar/conduits')
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c3
-rw-r--r--calendar/conduits/todo/todo-conduit.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index 0ed563b574..868d7bddd7 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -197,7 +197,8 @@ start_calendar_server (ECalConduitContext *ctxt)
start_calendar_server_cb, ctxt);
LOG (" calling cal_client_open_calendar\n");
- cal_client_open_calendar (ctxt->client, ctxt->calendar_file, FALSE);
+ if (!cal_client_open_calendar (ctxt->client, ctxt->calendar_file, FALSE))
+ return -1;
/* run a sub event loop to turn cal-client's async load
notification into a synchronous call */
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index fe50a7869b..f0dfb56b14 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -201,7 +201,8 @@ start_calendar_server (EToDoConduitContext *ctxt)
start_calendar_server_cb, ctxt);
LOG (" calling cal_client_open_calendar\n");
- cal_client_open_calendar (ctxt->client, ctxt->calendar_file, FALSE);
+ if (!cal_client_open_calendar (ctxt->client, ctxt->calendar_file, FALSE))
+ return -1;
/* run a sub event loop to turn cal-client's async load
notification into a synchronous call */