aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calendar-conduit-control-applet.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/calendar-conduit-control-applet.c')
-rw-r--r--calendar/calendar-conduit-control-applet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/calendar/calendar-conduit-control-applet.c b/calendar/calendar-conduit-control-applet.c
index ae4bda428f..2d6fb60ef5 100644
--- a/calendar/calendar-conduit-control-applet.c
+++ b/calendar/calendar-conduit-control-applet.c
@@ -326,9 +326,6 @@ main( int argc, char *argv[] )
NULL,
0, NULL);
- /* put all code to set things up in here */
- conduit = gpilotd_conduit_mgmt_new("calendar_conduit");
-
/* get pilot name from gpilotd */
/* 1. initialize the gpilotd connection */
if (gpilotd_init(&argc,argv)!=0) {
@@ -348,6 +345,7 @@ main( int argc, char *argv[] )
if(!pilotId) return -1;
/* put all code to set things up in here */
+ conduit = gpilotd_conduit_mgmt_new("calendar_conduit",pilotId);
gcalconduit_load_configuration(&origState,pilotId);
gpilotd_conduit_mgmt_get_sync_type(conduit,pilotId,&origState->sync_type);