for w32 port
[oweals/gnunet.git] / src / statistics / statistics_api.c
index a5dde0e55511955518dfe2fa7d89db46fcb49e58..29b1cbbfdcba2bf557d9ebd401b3d1b98a634465 100644 (file)
@@ -491,7 +491,6 @@ receive_stats (void *cls, const struct GNUNET_MessageHeader *msg)
                   "Received end of statistics marker\n");
 #endif
       h->backoff = GNUNET_TIME_UNIT_MILLISECONDS;
-      finish (h, GNUNET_OK);
       if (h->watches_size > 0)
        {
          GNUNET_CLIENT_receive (h->client,
@@ -503,6 +502,7 @@ receive_stats (void *cls, const struct GNUNET_MessageHeader *msg)
        {
          h->receiving = GNUNET_NO;
        }
+      finish (h, GNUNET_OK);
       return;
     case GNUNET_MESSAGE_TYPE_STATISTICS_VALUE:
       if (GNUNET_OK == process_message (h, msg))