fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 6 Jun 2011 11:13:45 +0000 (11:13 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 6 Jun 2011 11:13:45 +0000 (11:13 +0000)
src/transport/transport_api_new.c

index 2a8c78f240a4ebe733a0b4ab2e5610c18d121990..8ef2984505f903d166d7aa9ade8fb0229a15cacc 100644 (file)
@@ -666,7 +666,8 @@ transport_notify_ready (void *cls, size_t size, void *buf)
        {
          /* peer not ready, wait for notification! */
          GNUNET_assert (n == GNUNET_CONTAINER_heap_remove_root (h->ready_heap));
-         GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == n->th->timeout_task);
+         n->hn = NULL;
+         GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == n->th->timeout_task);
          n->th->timeout_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_absolute_get_remaining (n->th->timeout),
                                                              &timeout_request_due_to_congestion,
                                                              n->th);