diff options
-rw-r--r-- | src/ats/ats_api_performance.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c index aa5fff203..acbc18e58 100644 --- a/src/ats/ats_api_performance.c +++ b/src/ats/ats_api_performance.c | |||
@@ -308,7 +308,8 @@ transmit_message_to_ats (void *cls, size_t size, void *buf) | |||
308 | ret += p->size; | 308 | ret += p->size; |
309 | size -= p->size; | 309 | size -= p->size; |
310 | GNUNET_CONTAINER_DLL_remove (ph->pending_head, ph->pending_tail, p); | 310 | GNUNET_CONTAINER_DLL_remove (ph->pending_head, ph->pending_tail, p); |
311 | GNUNET_CLIENT_receive (ph->client, &process_ats_message, ph, | 311 | if (GNUNET_YES == p->is_init) |
312 | GNUNET_CLIENT_receive (ph->client, &process_ats_message, ph, | ||
312 | GNUNET_TIME_UNIT_FOREVER_REL); | 313 | GNUNET_TIME_UNIT_FOREVER_REL); |
313 | 314 | ||
314 | GNUNET_free (p); | 315 | GNUNET_free (p); |