From bca24b48e92b81a55732608dcbf4e84b28ebbb27 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 6 Jun 2011 11:12:17 +0000 Subject: [PATCH] fix --- src/transport/transport_api_new.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/transport_api_new.c b/src/transport/transport_api_new.c index b9e7b49af..2a8c78f24 100644 --- a/src/transport/transport_api_new.c +++ b/src/transport/transport_api_new.c @@ -662,8 +662,7 @@ transport_notify_ready (void *cls, size_t size, void *buf) while ( (NULL == h->control_head) && (NULL != (n = GNUNET_CONTAINER_heap_peek (h->ready_heap))) ) { - n->hn = NULL; - if (GNUNET_YES != n->is_ready) + if (GNUNET_YES != n->is_ready) { /* peer not ready, wait for notification! */ GNUNET_assert (n == GNUNET_CONTAINER_heap_remove_root (h->ready_heap)); @@ -679,6 +678,7 @@ transport_notify_ready (void *cls, size_t size, void *buf) if (GNUNET_BANDWIDTH_tracker_get_delay (&n->out_tracker, th->notify_size).rel_value > 0) break; /* too early */ GNUNET_assert (n == GNUNET_CONTAINER_heap_remove_root (h->ready_heap)); + n->hn = NULL; n->th = NULL; n->is_ready = GNUNET_NO; GNUNET_assert (size >= sizeof (struct OutboundMessage)); -- 2.25.1