aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2014-01-17 04:12:59 +0000
committerLRN <lrn1986@gmail.com>2014-01-17 04:12:59 +0000
commit3a7ec58a0967162a953e0b7dedf7dbb68cd1c430 (patch)
tree7eba59c9018c18a0c552775bc2e39536223a6a55 /src/mesh/gnunet-service-mesh_tunnel.c
parent6a7e0b55b60b208d621a54edde630cc63c5aeb35 (diff)
downloadgnunet-3a7ec58a0967162a953e0b7dedf7dbb68cd1c430.tar.gz
gnunet-3a7ec58a0967162a953e0b7dedf7dbb68cd1c430.zip
Check that we're not scheduling destroy twice
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index ed556c811..afb739ee5 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -2018,6 +2018,13 @@ delayed_destroy (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
2018void 2018void
2019GMT_destroy_empty (struct MeshTunnel3 *t) 2019GMT_destroy_empty (struct MeshTunnel3 *t)
2020{ 2020{
2021 if (GNUNET_SCHEDULER_NO_TASK != t->destroy_task)
2022 {
2023 LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s is already scheduled for destruction\n",
2024 GMT_2s (t));
2025 return;
2026 }
2027
2021 LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s empty: destroying scheduled\n", 2028 LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s empty: destroying scheduled\n",
2022 GMT_2s (t)); 2029 GMT_2s (t));
2023 2030