aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index a36c57772..b15054a2b 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -1842,6 +1842,10 @@ GMC_destroy (struct MeshConnection *c)
1842 if (NULL == c) 1842 if (NULL == c)
1843 return; 1843 return;
1844 1844
1845 if (2 == c->destroy) /* cancel queues -> GMP_queue_cancel -> q_destroy -> */
1846 return; /* -> message_sent -> GMC_destroy. Don't loop. */
1847 c->destroy = 2;
1848
1845 LOG (GNUNET_ERROR_TYPE_DEBUG, "destroying connection %s\n", GMC_2s (c)); 1849 LOG (GNUNET_ERROR_TYPE_DEBUG, "destroying connection %s\n", GMC_2s (c));
1846 1850
1847 /* Cancel all traffic */ 1851 /* Cancel all traffic */