aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index df5693d3a..fdceddc70 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -223,7 +223,10 @@ struct CadetConnection
223 unsigned int pending_messages; 223 unsigned int pending_messages;
224 224
225 /** 225 /**
226 * Destroy flag: if true, destroy on last message. 226 * Destroy flag:
227 * - if 0, connection in use.
228 * - if 1, destroy on last message.
229 * - if 2, connection is being destroyed don't re-enter.
227 */ 230 */
228 int destroy; 231 int destroy;
229 232
@@ -2800,10 +2803,10 @@ GCC_destroy (struct CadetConnection *c)
2800 { 2803 {
2801 connection_cancel_queues (c, GNUNET_YES); 2804 connection_cancel_queues (c, GNUNET_YES);
2802 connection_cancel_queues (c, GNUNET_NO); 2805 connection_cancel_queues (c, GNUNET_NO);
2803 path_destroy (c->path);
2804 c->path = NULL;
2805 } 2806 }
2806 unregister_neighbors (c); 2807 unregister_neighbors (c);
2808 path_destroy (c->path);
2809 c->path = NULL;
2807 2810
2808 /* Cancel maintainance task (keepalive/timeout) */ 2811 /* Cancel maintainance task (keepalive/timeout) */
2809 if (NULL != c->fwd_fc.poll_msg) 2812 if (NULL != c->fwd_fc.poll_msg)