diff options
author | LRN <lrn1986@gmail.com> | 2014-01-17 04:12:59 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2014-01-17 04:12:59 +0000 |
commit | 3a7ec58a0967162a953e0b7dedf7dbb68cd1c430 (patch) | |
tree | 7eba59c9018c18a0c552775bc2e39536223a6a55 /src | |
parent | 6a7e0b55b60b208d621a54edde630cc63c5aeb35 (diff) | |
download | gnunet-3a7ec58a0967162a953e0b7dedf7dbb68cd1c430.tar.gz gnunet-3a7ec58a0967162a953e0b7dedf7dbb68cd1c430.zip |
Check that we're not scheduling destroy twice
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 7 |
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) | |||
2018 | void | 2018 | void |
2019 | GMT_destroy_empty (struct MeshTunnel3 *t) | 2019 | GMT_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 | ||