From: Christian Grothoff Date: Mon, 6 Jun 2011 11:12:17 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~18318 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bca24b48e92b81a55732608dcbf4e84b28ebbb27;p=oweals%2Fgnunet.git fix --- 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));