diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-24 12:27:28 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-24 12:27:28 +0000 |
commit | 6c1e65fe29f0dbd66b38b6b0b489bd211fab9882 (patch) | |
tree | 12b2e3a74494b3dad5647bfa0b54a007cc0bc8ab /src/experimentation/gnunet-daemon-experimentation.c | |
parent | 0544eb9dddba58527a559800ad399a65f225820f (diff) | |
download | gnunet-6c1e65fe29f0dbd66b38b6b0b489bd211fab9882.tar.gz gnunet-6c1e65fe29f0dbd66b38b6b0b489bd211fab9882.zip |
issuer
Diffstat (limited to 'src/experimentation/gnunet-daemon-experimentation.c')
-rw-r--r-- | src/experimentation/gnunet-daemon-experimentation.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/experimentation/gnunet-daemon-experimentation.c b/src/experimentation/gnunet-daemon-experimentation.c index 824eab580..78177f59c 100644 --- a/src/experimentation/gnunet-daemon-experimentation.c +++ b/src/experimentation/gnunet-daemon-experimentation.c | |||
@@ -46,6 +46,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
46 | { | 46 | { |
47 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Experimentation daemon shutting down ...\n")); | 47 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Experimentation daemon shutting down ...\n")); |
48 | GNUNET_EXPERIMENTATION_nodes_stop (); | 48 | GNUNET_EXPERIMENTATION_nodes_stop (); |
49 | GNUNET_EXPERIMENTATION_experiments_stop (); | ||
49 | GNUNET_EXPERIMENTATION_capabilities_stop (); | 50 | GNUNET_EXPERIMENTATION_capabilities_stop (); |
50 | } | 51 | } |
51 | 52 | ||
@@ -73,12 +74,16 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
73 | return; | 74 | return; |
74 | } | 75 | } |
75 | 76 | ||
76 | GNUNET_EXPERIMENTATION_capabilities_start(); | 77 | GNUNET_EXPERIMENTATION_capabilities_start (); |
78 | if (GNUNET_SYSERR == GNUNET_EXPERIMENTATION_experiments_start ()) | ||
79 | { | ||
80 | GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); | ||
81 | return; | ||
82 | } | ||
77 | GNUNET_EXPERIMENTATION_nodes_start (); | 83 | GNUNET_EXPERIMENTATION_nodes_start (); |
78 | 84 | ||
79 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, | 85 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, |
80 | NULL); | 86 | NULL); |
81 | |||
82 | } | 87 | } |
83 | 88 | ||
84 | 89 | ||