summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-30 07:26:53 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-30 07:26:53 +0100
commit5d021c879a1c83ba222d09f1e0dc2a0a081bc799 (patch)
tree4b06f3996a97a497f52445880a55d0bebaeedad1 /src/transport/gnunet-communicator-tcp.c
parent30e251fac34c48bafe5862f26a7dcfad4c6a39f8 (diff)
implement MTU calculation and adjustments
Diffstat (limited to 'src/transport/gnunet-communicator-tcp.c')
-rw-r--r--src/transport/gnunet-communicator-tcp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c
index d86fa03b6..1d10b82e5 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -590,6 +590,11 @@ queue_destroy (struct Queue *queue)
queue->mq = NULL;
GNUNET_MQ_destroy (mq);
}
+ if (NULL != queue->qh)
+ {
+ GNUNET_TRANSPORT_communicator_mq_del (queue->qh);
+ queue->qh = NULL;
+ }
GNUNET_assert (GNUNET_YES ==
GNUNET_CONTAINER_multipeermap_remove (queue_map,
&queue->target,