fixing shutdown
[oweals/gnunet.git] / src / ats / ats_api_performance.c
index aa5fff2036fe2803ea4a1287cfecec140c9d5d77..acbc18e582b499983d30a5cdb97ee834b3723ccc 100644 (file)
@@ -308,7 +308,8 @@ transmit_message_to_ats (void *cls, size_t size, void *buf)
     ret += p->size;
     size -= p->size;
     GNUNET_CONTAINER_DLL_remove (ph->pending_head, ph->pending_tail, p);
-    GNUNET_CLIENT_receive (ph->client, &process_ats_message, ph,
+    if (GNUNET_YES == p->is_init)
+      GNUNET_CLIENT_receive (ph->client, &process_ats_message, ph,
                             GNUNET_TIME_UNIT_FOREVER_REL);
 
     GNUNET_free (p);