diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-08-03 09:27:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-08-03 09:27:15 +0000 |
commit | 714aa2df003c8baa8826131f0fba0eed44029b2d (patch) | |
tree | c6dc50333a8544bccfbbc84265c5f76e675d16db /src/statistics | |
parent | b84381a4d9b5c1c11a5fc01ecf6c22e3af771454 (diff) | |
download | gnunet-714aa2df003c8baa8826131f0fba0eed44029b2d.tar.gz gnunet-714aa2df003c8baa8826131f0fba0eed44029b2d.zip |
-use simpler, modern scheduler API
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/statistics_api.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index d4318b707..66802d2ce 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c | |||
@@ -518,8 +518,7 @@ reconnect_later (struct GNUNET_STATISTICS_Handle *h) | |||
518 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 518 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
519 | _("Could not save some persistent statistics\n")); | 519 | _("Could not save some persistent statistics\n")); |
520 | h->do_destroy = GNUNET_NO; | 520 | h->do_destroy = GNUNET_NO; |
521 | GNUNET_SCHEDULER_add_continuation (&do_destroy, h, | 521 | GNUNET_SCHEDULER_add_now (&do_destroy, h); |
522 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
523 | return; | 522 | return; |
524 | } | 523 | } |
525 | h->backoff_task = | 524 | h->backoff_task = |
@@ -674,8 +673,7 @@ receive_stats (void *cls, | |||
674 | return; | 673 | return; |
675 | } | 674 | } |
676 | h->do_destroy = GNUNET_NO; | 675 | h->do_destroy = GNUNET_NO; |
677 | GNUNET_SCHEDULER_add_continuation (&destroy_task, h, | 676 | GNUNET_SCHEDULER_add_now (&destroy_task, h); |
678 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
679 | break; | 677 | break; |
680 | case GNUNET_MESSAGE_TYPE_STATISTICS_END: | 678 | case GNUNET_MESSAGE_TYPE_STATISTICS_END: |
681 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 679 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
@@ -1089,8 +1087,7 @@ transmit_test_on_shutdown (void *cls, | |||
1089 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1087 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
1090 | _("Failed to receive acknowledgement from statistics service, some statistics might have been lost!\n")); | 1088 | _("Failed to receive acknowledgement from statistics service, some statistics might have been lost!\n")); |
1091 | h->do_destroy = GNUNET_NO; | 1089 | h->do_destroy = GNUNET_NO; |
1092 | GNUNET_SCHEDULER_add_continuation (&destroy_task, h, | 1090 | GNUNET_SCHEDULER_add_now (&destroy_task, h); |
1093 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | ||
1094 | return 0; | 1091 | return 0; |
1095 | } | 1092 | } |
1096 | hdr.type = htons (GNUNET_MESSAGE_TYPE_TEST); | 1093 | hdr.type = htons (GNUNET_MESSAGE_TYPE_TEST); |