diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-28 23:06:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-28 23:06:28 +0000 |
commit | 6d5c044aedd77a7131b2b5e099a583028a4598c6 (patch) | |
tree | 711242ba7b9a2df2e4c63583edd5cd15c6442c63 /src/transport | |
parent | d9b2dc76dfd7d2803ab772905f2153237f1c7e51 (diff) | |
download | gnunet-6d5c044aedd77a7131b2b5e099a583028a4598c6.tar.gz gnunet-6d5c044aedd77a7131b2b5e099a583028a4598c6.zip |
fixing 1802
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 6cbc5aabe..09e24565b 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -361,12 +361,12 @@ try_transmission_to_peer (struct NeighbourMapEntry *n) | |||
361 | return; /* transmission already pending */ | 361 | return; /* transmission already pending */ |
362 | if (n->transmission_task != GNUNET_SCHEDULER_NO_TASK) | 362 | if (n->transmission_task != GNUNET_SCHEDULER_NO_TASK) |
363 | return; /* currently waiting for bandwidth */ | 363 | return; /* currently waiting for bandwidth */ |
364 | mq = n->messages_head; | ||
365 | while (NULL != (mq = n->messages_head)) | 364 | while (NULL != (mq = n->messages_head)) |
366 | { | 365 | { |
367 | timeout = GNUNET_TIME_absolute_get_remaining (mq->timeout); | 366 | timeout = GNUNET_TIME_absolute_get_remaining (mq->timeout); |
368 | if (timeout.rel_value > 0) | 367 | if (timeout.rel_value > 0) |
369 | break; | 368 | break; |
369 | GNUNET_CONTAINER_DLL_remove (n->messages_head, n->messages_tail, mq); | ||
370 | transmit_send_continuation (mq, &n->id, GNUNET_SYSERR); /* timeout */ | 370 | transmit_send_continuation (mq, &n->id, GNUNET_SYSERR); /* timeout */ |
371 | } | 371 | } |
372 | if (NULL == mq) | 372 | if (NULL == mq) |