aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/daemon/daemon.c')
-rw-r--r--src/plugins/daemon/daemon.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/daemon/daemon.c b/src/plugins/daemon/daemon.c
index 252f6fdd..1898d979 100644
--- a/src/plugins/daemon/daemon.c
+++ b/src/plugins/daemon/daemon.c
@@ -337,7 +337,6 @@ void init_daemon(struct GE_Context * e,
337 col - 1), 337 col - 1),
338 TRUE); 338 TRUE);
339 339
340 updateAppModelSafe(NULL);
341 tab 340 tab
342 = glade_xml_get_widget(getMainXML(), 341 = glade_xml_get_widget(getMainXML(),
343 "daemonScrolledWindow"); 342 "daemonScrolledWindow");
@@ -358,7 +357,7 @@ void init_daemon(struct GE_Context * e,
358 } 357 }
359 FREE(daemon_config); 358 FREE(daemon_config);
360 359
361 cron = cron_create(ectx); 360 cron = gnunet_gtk_get_cron();
362 cron_add_job(cron, 361 cron_add_job(cron,
363 &cronCheckDaemon, 362 &cronCheckDaemon,
364 0, 363 0,
@@ -369,11 +368,9 @@ void init_daemon(struct GE_Context * e,
369 5 * cronMINUTES, 368 5 * cronMINUTES,
370 5 * cronMINUTES, 369 5 * cronMINUTES,
371 NULL); 370 NULL);
372 cron_start(cron);
373} 371}
374 372
375void done_daemon() { 373void done_daemon() {
376 cron_stop(cron);
377 cron_del_job(cron, 374 cron_del_job(cron,
378 &cronCheckDaemon, 375 &cronCheckDaemon,
379 15 * cronSECONDS, 376 15 * cronSECONDS,
@@ -382,7 +379,6 @@ void done_daemon() {
382 &updateAppModel, 379 &updateAppModel,
383 5 * cronMINUTES, 380 5 * cronMINUTES,
384 NULL); 381 NULL);
385 cron_destroy(cron);
386} 382}
387 383
388/** 384/**