diff options
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r-- | src/statistics/statistics_api.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index d44bc77d1..290a7b93f 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c | |||
@@ -620,6 +620,11 @@ transmit_watch (struct GNUNET_STATISTICS_Handle *handle, size_t size, void *buf) | |||
620 | finish (handle, GNUNET_SYSERR); | 620 | finish (handle, GNUNET_SYSERR); |
621 | return 0; | 621 | return 0; |
622 | } | 622 | } |
623 | #if DEBUG_STATISTICS | ||
624 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
625 | "Transmitting watch request for `%s'\n", | ||
626 | handle->current->name); | ||
627 | #endif | ||
623 | slen1 = strlen (handle->current->subsystem) + 1; | 628 | slen1 = strlen (handle->current->subsystem) + 1; |
624 | slen2 = strlen (handle->current->name) + 1; | 629 | slen2 = strlen (handle->current->name) + 1; |
625 | msize = slen1 + slen2 + sizeof (struct GNUNET_MessageHeader); | 630 | msize = slen1 + slen2 + sizeof (struct GNUNET_MessageHeader); |
@@ -633,7 +638,7 @@ transmit_watch (struct GNUNET_STATISTICS_Handle *handle, size_t size, void *buf) | |||
633 | 2, | 638 | 2, |
634 | handle->current->subsystem, | 639 | handle->current->subsystem, |
635 | handle->current->name)); | 640 | handle->current->name)); |
636 | if (! handle->receiving) | 641 | if (GNUNET_YES != handle->receiving) |
637 | { | 642 | { |
638 | handle->receiving = GNUNET_YES; | 643 | handle->receiving = GNUNET_YES; |
639 | GNUNET_CLIENT_receive (handle->client, | 644 | GNUNET_CLIENT_receive (handle->client, |
@@ -641,6 +646,7 @@ transmit_watch (struct GNUNET_STATISTICS_Handle *handle, size_t size, void *buf) | |||
641 | handle, | 646 | handle, |
642 | GNUNET_TIME_UNIT_FOREVER_REL); | 647 | GNUNET_TIME_UNIT_FOREVER_REL); |
643 | } | 648 | } |
649 | finish (handle, GNUNET_OK); | ||
644 | return msize; | 650 | return msize; |
645 | } | 651 | } |
646 | 652 | ||