gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15437 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r15437 - gnunet/src/transport
Date: Mon, 6 Jun 2011 13:12:17 +0200

Author: grothoff
Date: 2011-06-06 13:12:17 +0200 (Mon, 06 Jun 2011)
New Revision: 15437

Modified:
   gnunet/src/transport/transport_api_new.c
Log:
fix

Modified: gnunet/src/transport/transport_api_new.c
===================================================================
--- gnunet/src/transport/transport_api_new.c    2011-06-05 17:17:32 UTC (rev 
15436)
+++ gnunet/src/transport/transport_api_new.c    2011-06-06 11:12:17 UTC (rev 
15437)
@@ -662,8 +662,7 @@
   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 @@
       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));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]